express - Capturing the source or line number of uncaught exception in node.js -
i've node.js express app running in iis. found app crashing due uncaught exception. hence used process.on('uncaughtexception') restart service in case of uncaught exception. i'm able error "econnreset" i'm unable happened. there way capture error source or line number caused exception?
use process.on('uncaughtexception'…
event provides error object contains call stack
process.on('uncaughtexception', function(err){ console.error(err.stack); process.exit(); });
Comments
Post a Comment