Skip to content

Commit

Permalink
feat: include stack details in error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
gabidobo committed May 10, 2023
1 parent 7c51e44 commit d910d2a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cli/cmds/audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d910d2a

Please sign in to comment.