You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this has been achieved. It seems that dangerjs can catch unhandled exceptions, but I can't. I can't deal with something like TypeError.
It is an idea to print the log in the comment, but this requires additional information gathering work.
I tried process.on(unhandledError) or process.on(unCatchedRejection) but it still triggers an abnormal exit.
So I want to ask, what is the best practice for this kind of error handling?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I don't know if this has been achieved. It seems that dangerjs can catch unhandled exceptions, but I can't. I can't deal with something like
TypeError
.It is an idea to print the log in the comment, but this requires additional information gathering work.
I tried
process.on(unhandledError)
orprocess.on(unCatchedRejection)
but it still triggers an abnormal exit.So I want to ask, what is the best practice for this kind of error handling?
Beta Was this translation helpful? Give feedback.
All reactions