Skip to content

Commit

Permalink
More descriptive error message for env.CI = true warnings causing fai…
Browse files Browse the repository at this point in the history
…lures

Related: #944
  • Loading branch information
jayphelps committed Feb 8, 2017
1 parent adab23f commit 837fbdb
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 837fbdb

Please sign in to comment.