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

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -