From 1c3429c3759d4820bb57c399dece428e02e494bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6ran=20Sander?= Date: Wed, 5 Oct 2022 06:41:46 +0000 Subject: [PATCH] fix: Handle startup error messages without... errors Fixes #567 --- src/globals.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/globals.js b/src/globals.js index ca18ac16..afbfbde9 100644 --- a/src/globals.js +++ b/src/globals.js @@ -120,7 +120,8 @@ if ( config.Butler.thirdPartyToolsCredentials.newRelic.push({ accountName, accountId, insertApiKey }); } } else if (options?.newRelicAccountName?.length > 0 || options?.newRelicApiKey?.length > 0 || options?.newRelicAccountId?.length > 0) { - logger.error('Incorrect command line parameters: Number of New Relic account names/IDs/API keys must match.'); + // eslint-disable-next-line no-console + console.log('\n\nIncorrect command line parameters: Number of New Relic account names/IDs/API keys must match. Exiting.'); process.exit(1); }