Improve bad replacement quest error messaging

This commit is contained in:
Dev 2023-10-19 19:30:23 +01:00
parent 914d505adc
commit 57b1fe0733

View File

@ -397,7 +397,9 @@ export class RepeatableQuestController
let output = this.eventOutputHolder.getOutput(sessionID);
if (!repeatableToChange)
{
return this.httpResponse.appendErrorToOutput(output, "Unable to find repeatable quest to replace");
const message = "Unable to find repeatable quest to replace";
this.logger.error(message);
return this.httpResponse.appendErrorToOutput(output, message);
}
// Charge player money for replacing quest