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

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