add err.stack on process#uncaughtException for printing error stack

This commit is contained in:
弘树 2015-07-21 20:15:08 +08:00
parent 4c5bc97542
commit d6fe53c7de

View File

@ -176,7 +176,7 @@ function proxyServer(option){
}); });
process.on("uncaughtException",function(err){ process.on("uncaughtException",function(err){
logUtil.printLog('Caught exception: ' + err, logUtil.T_ERR); logUtil.printLog('Caught exception: ' + (err.stack || err), logUtil.T_ERR);
process.exit(); process.exit();
}); });