forked from svrjs/svrjs
Replace "SVR.JS" with references to svrjs.json
This commit is contained in:
parent
43235f867a
commit
cbf11e7ed6
1 changed files with 5 additions and 5 deletions
10
src/index.js
10
src/index.js
|
@ -702,7 +702,7 @@ if (!disableMods) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
"This version of " +
|
"This version of " +
|
||||||
name +
|
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) {
|
newWorker.on("error", function (err) {
|
||||||
if (!exiting)
|
if (!exiting)
|
||||||
serverconsole.locwarnmessage(
|
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,
|
err.message,
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -2329,7 +2329,7 @@ function start(init) {
|
||||||
if (cluster.isPrimary || cluster.isPrimary === undefined) {
|
if (cluster.isPrimary || cluster.isPrimary === undefined) {
|
||||||
// Crash handler
|
// Crash handler
|
||||||
function crashHandlerMaster(err) {
|
function crashHandlerMaster(err) {
|
||||||
serverconsole.locerrmessage("SVR.JS main process just crashed!!!");
|
serverconsole.locerrmessage(name + " main process just crashed!!!");
|
||||||
serverconsole.locerrmessage("Stack:");
|
serverconsole.locerrmessage("Stack:");
|
||||||
serverconsole.locerrmessage(
|
serverconsole.locerrmessage(
|
||||||
err.stack ? generateErrorStack(err) : String(err),
|
err.stack ? generateErrorStack(err) : String(err),
|
||||||
|
@ -2404,7 +2404,7 @@ if (cluster.isPrimary || cluster.isPrimary === undefined) {
|
||||||
} else {
|
} else {
|
||||||
// Crash handler
|
// Crash handler
|
||||||
function crashHandler(err) {
|
function crashHandler(err) {
|
||||||
serverconsole.locerrmessage("SVR.JS worker just crashed!!!");
|
serverconsole.locerrmessage(name + " worker just crashed!!!");
|
||||||
serverconsole.locerrmessage("Stack:");
|
serverconsole.locerrmessage("Stack:");
|
||||||
serverconsole.locerrmessage(
|
serverconsole.locerrmessage(
|
||||||
err.stack ? generateErrorStack(err) : String(err),
|
err.stack ? generateErrorStack(err) : String(err),
|
||||||
|
@ -2429,7 +2429,7 @@ if (cluster.isPrimary || cluster.isPrimary === undefined) {
|
||||||
try {
|
try {
|
||||||
start(true);
|
start(true);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
serverconsole.locerrmessage("There was a problem starting SVR.JS!!!");
|
serverconsole.locerrmessage("There was a problem starting " + name + "!!!");
|
||||||
serverconsole.locerrmessage("Stack:");
|
serverconsole.locerrmessage("Stack:");
|
||||||
serverconsole.locerrmessage(generateErrorStack(err));
|
serverconsole.locerrmessage(generateErrorStack(err));
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
|
Reference in a new issue