1
0
Fork 0
forked from svrjs/svrjs

Main process crashes no longer display as worker crashes.

This commit is contained in:
Dorian Niemiec 2024-08-25 17:35:28 +02:00
parent 09ef59832f
commit 2aaa584e3c

2
svr.js
View file

@ -5856,7 +5856,7 @@ function saveConfig() {
if (cluster.isPrimary || cluster.isPrimary === undefined) {
// Crash handler
function crashHandlerMaster(err) {
serverconsole.locerrmessage("SVR.JS worker just crashed!!!");
serverconsole.locerrmessage("SVR.JS main process just crashed!!!");
serverconsole.locerrmessage("Stack:");
serverconsole.locerrmessage(err.stack ? generateErrorStack(err) : String(err));
process.exit(err.errno !== undefined ? err.errno : 1);