Skip to content

Commit

Permalink
UX: Explain why build is failing (facebook#1352)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayphelps authored and randycoulman committed May 8, 2017
1 parent 5534323 commit f7e941f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-scripts/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function build(previousSizeMap) {
}

if (process.env.CI && stats.compilation.warnings.length) {
printErrors('Failed to compile.', stats.compilation.warnings);
printErrors('Failed to compile. When process.env.CI = true, warnings are treated as failures. Most CI servers set this automatically.', stats.compilation.warnings);
process.exit(1);
}

Expand Down

0 comments on commit f7e941f

Please sign in to comment.