mirror of https://github.com/node-red/node-red.git
Merge branch 'pr_3146' into dev
commit
5fb9531338
|
@ -455,10 +455,18 @@ httpsPromise.then(function(startupHttps) {
|
|||
process.on('uncaughtException',function(err) {
|
||||
util.log('[red] Uncaught Exception:');
|
||||
if (err.stack) {
|
||||
try {
|
||||
RED.log.error(err.stack);
|
||||
} catch(err2) {
|
||||
util.log(err.stack);
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
RED.log.error(err);
|
||||
} catch(err2) {
|
||||
util.log(err);
|
||||
}
|
||||
}
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue