1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

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