From cf4905337005768644178d46c744cfdc90bef7ff Mon Sep 17 00:00:00 2001 From: Rithwik Rayani <39290434+therithwikrayani@users.noreply.github.com> Date: Thu, 24 Mar 2022 04:58:06 +0530 Subject: Made error message format consistent (#591) Co-authored-by: Max Isom --- src/utils/error-msg.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/utils') diff --git a/src/utils/error-msg.ts b/src/utils/error-msg.ts index 0f4e0b2..ef03e76 100644 --- a/src/utils/error-msg.ts +++ b/src/utils/error-msg.ts @@ -1,11 +1,11 @@ export default (error?: string | Error): string => { - let str = '🚫 unknown error'; + let str = 'unknown error'; if (error) { if (typeof error === 'string') { - str = `🚫 ${error}`; + str = `🚫ope: ${error}`; } else if (error instanceof Error) { - str = `🚫 ope: ${error.message}`; + str = `🚫ope: ${error.message}`; } } -- cgit v1.2.3