aboutsummaryrefslogtreecommitdiff
path: root/src/utils/error-msg.ts
diff options
context:
space:
mode:
authorMax Isom <[email protected]>2022-01-26 12:58:33 -0500
committerMax Isom <[email protected]>2022-01-26 12:58:33 -0500
commitaacb107f43db6b8c53d160b5913701959f81cf09 (patch)
treea63d0717d03c84987b69d5af1c1f5b45ef019a4a /src/utils/error-msg.ts
parent09665af53ee1b1903fc9ea719722aa5dfdc26325 (diff)
parentaf05210be4a8857ea707866192efa79b3945b314 (diff)
downloadmuse-aacb107f43db6b8c53d160b5913701959f81cf09.tar.xz
muse-aacb107f43db6b8c53d160b5913701959f81cf09.zip
Merge branch 'master' into feature/slash-commands
Diffstat (limited to 'src/utils/error-msg.ts')
-rw-r--r--src/utils/error-msg.ts2
1 files changed, 1 insertions, 1 deletions
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}`;
}
}