promise-lua
promise-lua copied to clipboard
add a function to register an unhandled promise rejection handler
When a promise is rejected and the calling application fail or forget to catch it, The error is silently ignored making things hard to debug. This kind of mistake is considered has a fatal runtime error in nodejs.
We this PR, we can register a uniq and global "Unhandled Promise Rejection" handler. This way, the application can choose the way to manage this kind of issue. (logging, exit, ...)
Hi @pyericz could you have a look at this PR?
Hi, any news ? :)