uncaughtException debug improvements

Changed error uncaughtException tracing
This commit is contained in:
Renato Junior 2021-09-17 22:02:48 -03:00 committed by GitHub
parent 4f23847546
commit bd142a9710
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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