From 56a469a999774c8b8683adeb59b243fdf85b14c9 Mon Sep 17 00:00:00 2001 From: Max Isom Date: Sat, 5 Feb 2022 16:16:17 -0600 Subject: Migrate to slash commands (#431) Co-authored-by: Federico fuji97 Rapetti --- src/utils/error-msg.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/error-msg.ts') diff --git a/src/utils/error-msg.ts b/src/utils/error-msg.ts index 832de3c..0f4e0b2 100644 --- a/src/utils/error-msg.ts +++ b/src/utils/error-msg.ts @@ -5,7 +5,7 @@ export default (error?: string | Error): string => { if (typeof error === 'string') { str = `🚫 ${error}`; } else if (error instanceof Error) { - str = `🚫 ope: ${error.name}`; + str = `🚫 ope: ${error.message}`; } } -- cgit v1.2.3