From e856f3c7fca1afb9c7d4e49fdcd30a84181f1ea7 Mon Sep 17 00:00:00 2001 From: Joshua Pohl Date: Sun, 11 Apr 2021 16:33:15 -0500 Subject: [PATCH] fix: always log error messages that trigger an exit --- bin/logger.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/logger.js b/bin/logger.js index 8a07717..41ca949 100644 --- a/bin/logger.js +++ b/bin/logger.js @@ -51,7 +51,12 @@ const logError = (msg, error) => { }; const logErrorAndExit = (msg, error) => { - logError(msg, error); + console.error(msg); + + if (error) { + console.error(error.message); + } + process.exit(1); };