Skip to content

Commit

Permalink
allow guard
Browse files Browse the repository at this point in the history
  • Loading branch information
joscha authored Jun 28, 2017
1 parent 9c57ae0 commit 50aac05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/react/src/server/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ logger.log('Building storybook ...');
webpack(config).run((err, stats) => {
if (err || stats.hasErrors()) {
logger.error('Failed to build the storybook');
// eslint-disable-next-line no-unused-expressions
err && logger.error(err.message);
// eslint-disable-next-line no-unused-expressions
stats.hasErrors() && stats.toJson().errors.forEach(e => logger.error(e));
process.exit(1);
}
Expand Down

0 comments on commit 50aac05

Please sign in to comment.