From cbf11e7ed68e36c57046b3d8fe0a3388f03a5d3f Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Mon, 26 Aug 2024 07:04:21 +0200 Subject: [PATCH] Replace "SVR.JS" with references to svrjs.json --- src/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/index.js b/src/index.js index 928170c..c6fe41c 100644 --- a/src/index.js +++ b/src/index.js @@ -702,7 +702,7 @@ if (!disableMods) { throw new Error( "This version of " + name + - ' no longer supports "svrmodpack" library for SVR.JS mods. Please consider using newer mods with .tar.gz format.', + ' no longer supports "svrmodpack" library for ' + name + ' mods. Please consider using newer mods with .tar.gz format.', ); } @@ -1383,7 +1383,7 @@ function SVRJSFork() { newWorker.on("error", function (err) { if (!exiting) serverconsole.locwarnmessage( - "There was a problem when handling SVR.JS worker! (from master process side) Reason: " + + "There was a problem when handling " + name + " worker! (from master process side) Reason: " + err.message, ); }); @@ -2329,7 +2329,7 @@ function start(init) { if (cluster.isPrimary || cluster.isPrimary === undefined) { // Crash handler function crashHandlerMaster(err) { - serverconsole.locerrmessage("SVR.JS main process just crashed!!!"); + serverconsole.locerrmessage(name + " main process just crashed!!!"); serverconsole.locerrmessage("Stack:"); serverconsole.locerrmessage( err.stack ? generateErrorStack(err) : String(err), @@ -2404,7 +2404,7 @@ if (cluster.isPrimary || cluster.isPrimary === undefined) { } else { // Crash handler function crashHandler(err) { - serverconsole.locerrmessage("SVR.JS worker just crashed!!!"); + serverconsole.locerrmessage(name + " worker just crashed!!!"); serverconsole.locerrmessage("Stack:"); serverconsole.locerrmessage( err.stack ? generateErrorStack(err) : String(err), @@ -2429,7 +2429,7 @@ if (cluster.isPrimary || cluster.isPrimary === undefined) { try { start(true); } catch (err) { - serverconsole.locerrmessage("There was a problem starting SVR.JS!!!"); + serverconsole.locerrmessage("There was a problem starting " + name + "!!!"); serverconsole.locerrmessage("Stack:"); serverconsole.locerrmessage(generateErrorStack(err)); setTimeout(function () {