Skip to content

Commit

Permalink
fix: Handle startup error messages without... errors
Browse files Browse the repository at this point in the history
Fixes #567
  • Loading branch information
Göran Sander committed Oct 5, 2022
1 parent f4e2ef8 commit 1c3429c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 1c3429c

Please sign in to comment.