Skip to content

Commit

Permalink
Fix: Correctly print non-Styleguidist exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sapegin committed Oct 10, 2017
1 parent c7e5fe4 commit bc6e651
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/styleguidist.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ process.on('uncaughtException', err => {
} else if (err instanceof StyleguidistError) {
console.error(chalk.bold.red(err.message));
logger.debug(err.stack);
process.exit(1);
} else {
throw err;
console.error(err.toString());
console.error(err.stack);
}
process.exit(1);
});
Expand Down

0 comments on commit bc6e651

Please sign in to comment.