Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: show stack traces when capturing errors in the handler #247

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

Angelmmiguel
Copy link
Contributor

Display JS stack traces when there's an error:

Before

There was an error running the handler:
TypeError: not a function

After

There was an error running the handler:
TypeError: not a function
    at errorHandler (handler.mjs:3748)
    at handleError (handler.mjs:3914)
    at dispatch (handler.mjs:3938)
    at <anonymous> (handler.mjs:3768)
    at <anonymous> (runtime.mjs)
    at requestToHandler (handler.mjs:2962)

It closes #246

@Angelmmiguel Angelmmiguel added 🚀 enhancement New feature or request 🔨 sdks Issues related to language SDKs labels Oct 20, 2023
@Angelmmiguel Angelmmiguel added this to the 1.7.0 milestone Oct 20, 2023
@Angelmmiguel Angelmmiguel requested a review from a team October 20, 2023 07:01
@Angelmmiguel Angelmmiguel self-assigned this Oct 20, 2023
Copy link
Contributor

@ereslibre ereslibre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Angelmmiguel Angelmmiguel merged commit 582ba99 into main Oct 20, 2023
6 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
cla-not-required 🚀 enhancement New feature or request 🔨 sdks Issues related to language SDKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display JavaScript stack traces when printing the errors
3 participants