diff --git a/CHANGELOG.md b/CHANGELOG.md index fe7ba4ac..5fdb65cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Fixed +- Error messages consistently show as `🚫 ope: error` ## [1.7.0] - 2022-03-19 ### Added diff --git a/src/utils/error-msg.ts b/src/utils/error-msg.ts index 0f4e0b2f..ef03e76e 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}`; } }