Skip to content

Commit

Permalink
Merge pull request #1918 from bradleyayers/patch-1
Browse files Browse the repository at this point in the history
Gracefully handle fatal webpack errors.
  • Loading branch information
ndelangen authored Sep 30, 2017
2 parents 3468f58 + aaea315 commit 928166c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/react/src/server/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ webpack(config).run((err, stats) => {
// 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));
stats && stats.hasErrors() && stats.toJson().errors.forEach(e => logger.error(e));
process.exit(1);
}

Expand Down

0 comments on commit 928166c

Please sign in to comment.