Fix use of logger that assumes it interpolates strings (#10789)

This commit is contained in:
Andy Balaam 2023-05-05 11:56:15 +01:00 committed by GitHub
parent 02de2f5ba9
commit 7856d84034
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View file

@ -78,7 +78,7 @@ export async function runSlashCommand(
}
}
if (error) {
logger.error("Command failure: %s", error);
logger.error(`Command failure: ${error}`);
// assume the error is a server error when the command is async
const isServerError = !!result.promise;
const title = isServerError ? _td("Server error") : _td("Command error");