Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
camden11 committed Oct 17, 2023
1 parent 72011d0 commit bc0ae43
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/cli/lib/errorHandlers/standardErrors.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ function logErrorInstance(error, context) {
if (error instanceof Error || error.message || error.reason) {
// Error or Error subclass
const name = error.name || 'Error';
const message = i18n(`${i18nKey}.genericErrorOcurred`, { name })[
(error.message, error.reason)
].forEach(msg => {
const message = i18n(`${i18nKey}.genericErrorOcurred`, { name });
[(error.message, error.reason)].forEach(msg => {
if (msg) {
message.push(msg);
}
Expand Down

0 comments on commit bc0ae43

Please sign in to comment.