1
0
Fork 0
forked from svrjs/svrjs

Fix log files only partially saving on failed master startup

This commit is contained in:
Dorian Niemiec 2023-09-10 10:14:24 +02:00
parent f475aa8651
commit c7c381d8c9

2
svr.js
View file

@ -5628,7 +5628,9 @@ try {
serverconsole.locerrmessage("There was a problem starting SVR.JS!!!"); serverconsole.locerrmessage("There was a problem starting SVR.JS!!!");
serverconsole.locerrmessage("Stack:"); serverconsole.locerrmessage("Stack:");
serverconsole.locerrmessage(generateErrorStack(err)); serverconsole.locerrmessage(generateErrorStack(err));
setTimeout(function() {
process.exit(err.errno ? err.errno : 1); process.exit(err.errno ? err.errno : 1);
}, 10);
} }
////////////////////////////////// //////////////////////////////////