Skip to content

Commit bc6e651

Browse files
committed
Fix: Correctly print non-Styleguidist exception messages
1 parent c7e5fe4 commit bc6e651

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/styleguidist.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ process.on('uncaughtException', err => {
2727
} else if (err instanceof StyleguidistError) {
2828
console.error(chalk.bold.red(err.message));
2929
logger.debug(err.stack);
30-
process.exit(1);
3130
} else {
32-
throw err;
31+
console.error(err.toString());
32+
console.error(err.stack);
3333
}
3434
process.exit(1);
3535
});

0 commit comments

Comments
 (0)