Replies: 0 comments 4 replies
-
You'll want to log Keep in mind |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
Despite my searching, I couldn't find a clear explanation about getting the stacktrace of an unhandledRejection.
When such exception occurred, Node throws a clear and concise stack trace that shows me the exact problematic line (2nd stacktrace line, userService.ts:91):
I did the following:
AppError extends Error. The stack trace in the database contains the following which leads me to the
unhandledRejection
line and not to the original problematic line like in the above stacktrace:at /home/appName/public_html/src/appNameServer.ts:66:43
How can I have the nice and clear stacktrace with the relevant info so I can log it to my database?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions