Expanded http server port already in use message logging + throw exception to prevent second server running
This commit is contained in:
parent
b7082ff9dc
commit
77ca7c74fe
@ -577,7 +577,7 @@
|
|||||||
"pmcresponse-victim_positive_7": "That was fair, nice kill",
|
"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_8": "You're a good shot, that's for sure",
|
||||||
"pmcresponse-victim_positive_9": "gg",
|
"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-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_save_callback_error": "Error while executing onBeforeSaveCallback: {{callback}}, {{error}}",
|
||||||
"profile_saved": "%s Profile changes saved",
|
"profile_saved": "%s Profile changes saved",
|
||||||
|
@ -65,7 +65,9 @@ export class HttpServer
|
|||||||
}
|
}
|
||||||
else
|
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}]`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user