sade icon indicating copy to clipboard operation
sade copied to clipboard

Unhandled promise rejections

Open evrys opened this issue 3 years ago • 0 comments

Sade is great, thanks!

I noticed that if my async handlers error out, then node exits with an UnhandledPromiseRejectionWarning but doesn't print the error message or stack trace or such. I think it'd be convenient if sade would catch these by default and print something, or give me an easy way to define an error handler (aside from manually wrapping each action).

evrys avatar Oct 07 '21 03:10 evrys