Merge branch 'pr_3146' into dev

This commit is contained in:
Nick O'Leary
2021-10-06 17:33:28 +01:00

View File

@@ -455,9 +455,17 @@ httpsPromise.then(function(startupHttps) {
process.on('uncaughtException',function(err) { process.on('uncaughtException',function(err) {
util.log('[red] Uncaught Exception:'); util.log('[red] Uncaught Exception:');
if (err.stack) { if (err.stack) {
util.log(err.stack); try {
RED.log.error(err.stack);
} catch(err2) {
util.log(err.stack);
}
} else { } else {
util.log(err); try {
RED.log.error(err);
} catch(err2) {
util.log(err);
}
} }
process.exit(1); process.exit(1);
}); });