Skip to content

Commit

Permalink
Merge pull request #958 from HubSpot/log-error-fix
Browse files Browse the repository at this point in the history
Fix logErrorInstance message builder
  • Loading branch information
adamawang authored Nov 28, 2023
2 parents 2e093e8 + d26d160 commit b2d2711
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 b2d2711

Please sign in to comment.