diff --git a/project/assets/database/locales/server/en.json b/project/assets/database/locales/server/en.json index f1e52713..0a845880 100644 --- a/project/assets/database/locales/server/en.json +++ b/project/assets/database/locales/server/en.json @@ -577,7 +577,7 @@ "pmcresponse-victim_positive_7": "That was fair, nice kill", "pmcresponse-victim_positive_8": "You're a good shot, that's for sure", "pmcresponse-victim_positive_9": "gg", - "port_already_in_use": "Port %s is already in use, check if the server is already running", + "port_already_in_use": "Port %s is already in use, DO NOT RUN TWO SPT SERVERS. This will result in your progress not saving. Try restarting your computer.", "profile-unable_to_find_profile_by_id_cannot_delete": "Unable to delete profile with id: %s, no profile with id found", "profile_save_callback_error": "Error while executing onBeforeSaveCallback: {{callback}}, {{error}}", "profile_saved": "%s Profile changes saved", diff --git a/project/src/servers/HttpServer.ts b/project/src/servers/HttpServer.ts index 3f6acf4c..3110e2d1 100644 --- a/project/src/servers/HttpServer.ts +++ b/project/src/servers/HttpServer.ts @@ -65,7 +65,9 @@ export class HttpServer } else { - this.logger.error(this.localisationService.getText("port_already_in_use", e.port)); + const message = this.localisationService.getText("port_already_in_use", e.port); + this.logger.debug(`${message} [${e.message}]`); + throw new Error(`${message} [${e.message}]`); } });