Merge branch 'pr_3146' into dev

This commit is contained in:
Nick O'Leary 2021-10-06 17:33:28 +01:00
commit 5fb9531338
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 12 additions and 4 deletions

View File

@ -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);
});