remy / nodemon

Monitor for any changes in your node.js application and automatically restart the server - perfect for development
http://nodemon.io/
MIT License
26.13k stars 1.72k forks source link

catch global error not working #2144

Closed KingDracula closed 8 months ago

KingDracula commented 8 months ago

nodemon -v: 3.0.1 i was add the process catch exception ,when i run it by node it is working ,when i run it by nodemon it is not working ,the node process is restart process.on('uncaughtException', (error => { console.error("catch exception", error) })); process.on('unhandledRejection', (error => { console.error("catch exception", error) }));

KingDracula commented 8 months ago

was fix it ,my question