@goldstack/utils-cli
Advanced tools
Comparing version 0.3.14 to 0.3.15
@@ -74,6 +74,10 @@ "use strict"; | ||
if (isDebug) { | ||
logger().error({}, `Error while executing CLI command: ${e.error || e.errorMessage || e.message}`); | ||
console.error(e); | ||
throw e; | ||
} | ||
else { | ||
console.log('❌ ' + e.message); | ||
logger().info({}, '❌ Error while executing CLI command:' + | ||
e.message + | ||
'\n For more information about this error, run this command with the environment variable GOLDSTACK_DEBUG set to true'); | ||
process.exit(1); | ||
@@ -80,0 +84,0 @@ } |
{ | ||
"name": "@goldstack/utils-cli", | ||
"version": "0.3.14", | ||
"version": "0.3.15", | ||
"description": "Utilities for building command line interfaces.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
9520
123