promise-lua icon indicating copy to clipboard operation
promise-lua copied to clipboard

add a function to register an unhandled promise rejection handler

Open BuBuaBu opened this issue 5 years ago • 2 comments

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, ...)

BuBuaBu avatar Oct 28 '20 01:10 BuBuaBu

Hi @pyericz could you have a look at this PR?

BuBuaBu avatar Oct 30 '20 01:10 BuBuaBu

Hi, any news ? :)

adriweb avatar Jan 06 '21 21:01 adriweb