Skip to content

refactor: Use await so the handler appears in the stack trace on error#97

Open
epsmith001 wants to merge 1 commit intosilvermine:masterfrom
epsmith001:elismith/improve-stack-trace-433543
Open

refactor: Use await so the handler appears in the stack trace on error#97
epsmith001 wants to merge 1 commit intosilvermine:masterfrom
epsmith001:elismith/improve-stack-trace-433543

Conversation

@epsmith001
Copy link
Copy Markdown

Updated createAsyncHandler to use return await app.runAsync(event, context) so the handler frame is preserved in async stack traces when errors occur.

@epsmith001 epsmith001 marked this pull request as draft May 7, 2026 00:52
@epsmith001 epsmith001 marked this pull request as ready for review May 7, 2026 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant