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 marcusrbrown committed Feb 8, 2017
1 parent 8074eb2 commit 0a80192
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 0a80192

Please sign in to comment.