Updates to error codes

main
Mari 3 years ago
parent 826210461d
commit ffc6cf82d3
  1. 2
      src/queries/ErrorCodes.ts

@ -41,7 +41,7 @@ export async function sendErrorMessage(ctx: CommandContext, err: unknown): Promi
return
default:
await ctx.send({
content: `**Unexpected Error (${err.code})**${err.message ? ": " : ""}${err.message}${err.detail ? "\n" : ""}${err.detail}${err.hint ? "\n\n**Tip**: " : ""}${err.hint}`,
content: `**Unexpected Error${err.code ? ` (${err.code})` : ""}**${err.message ? `: ${err.message}` : ""}${err.detail ? `\n${err.detail}` : ""}${err.hint ? `\n\n**Tip**: ${err.hint}` : ""}`,
ephemeral: true,
})
return

Loading…
Cancel
Save