Send warning reason with votes and use quotes

This commit is contained in:
Ajay Ramachandran
2021-07-29 23:53:02 -04:00
parent d4e45cc3b0
commit 366de4955b
2 changed files with 7 additions and 5 deletions

View File

@@ -304,7 +304,7 @@ async function checkUserActiveWarning(userID: string): Promise<CheckResult> {
return {
pass: false,
errorMessage: defaultMessage + (warnings[0]?.reason?.length > 0 ? `\n\nWarning reason: ${warnings[0].reason}` : ""),
errorMessage: defaultMessage + (warnings[0]?.reason?.length > 0 ? `\n\nWarning reason: '${warnings[0].reason}'` : ""),
errorCode: 403
};
}