[Node.js] uncaughtExpection

If you cannot catch those pesky errors for any reason. Maybe some lib is throwing them and you can't catch them. You can use:

process.on('uncaughtException', cb)

 

posted @ 2022-09-02 01:26  Zhentiw  阅读(19)  评论(0)    收藏  举报