From d26d1609d8ee9bd18b791a8b0e22ff0c4ed867fb Mon Sep 17 00:00:00 2001 From: Adam Wang Date: Tue, 28 Nov 2023 11:09:41 -0500 Subject: [PATCH] Fix logErrorInstance message --- packages/cli/lib/errorHandlers/standardErrors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/lib/errorHandlers/standardErrors.js b/packages/cli/lib/errorHandlers/standardErrors.js index 435b21085..92751b67e 100644 --- a/packages/cli/lib/errorHandlers/standardErrors.js +++ b/packages/cli/lib/errorHandlers/standardErrors.js @@ -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); }