diff --git a/src/cli/cmds/audit.js b/src/cli/cmds/audit.js index dc98f02..8b9c457 100644 --- a/src/cli/cmds/audit.js +++ b/src/cli/cmds/audit.js @@ -342,7 +342,9 @@ exports.handler = async (argv) => { logger.log('✨ Done'); } else { logger.log('✨ Done, but with errors:'); - errors.forEach((error) => logger.logColor(logger.colors.RED, `❌ ${error}`)); + errors.forEach((error) => { + logger.logColor(logger.colors.RED, `❌ ${error.stack || error}`); + }); logger.logColor(logger.colors.RED, '❌ Failing because of errors'); process.exit(1); }