Skip to content

Commit

Permalink
Fix logErrorInstance message
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Wang committed Nov 28, 2023
1 parent 2e093e8 commit d26d160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/lib/errorHandlers/standardErrors.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function logErrorInstance(error, context) {
// Error or Error subclass
const name = error.name || 'Error';
const message = [i18n(`${i18nKey}.genericErrorOccurred`, { name })];
[(error.message, error.reason)].forEach(msg => {
[error.message, error.reason].forEach(msg => {
if (msg) {
message.push(msg);
}
Expand Down

0 comments on commit d26d160

Please sign in to comment.