mirror of https://github.com/node-red/node-red.git
uncaughtException debug improvements
Changed error uncaughtException tracingpull/3146/head
parent
4f23847546
commit
bd142a9710
|
@ -455,9 +455,9 @@ httpsPromise.then(function(startupHttps) {
|
|||
process.on('uncaughtException',function(err) {
|
||||
util.log('[red] Uncaught Exception:');
|
||||
if (err.stack) {
|
||||
util.log(err.stack);
|
||||
RED.log.error(err.stack);
|
||||
} else {
|
||||
util.log(err);
|
||||
RED.log.error(err);
|
||||
}
|
||||
process.exit(1);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue