Skip to content

Commit dff04fe

Browse files
jayphelpsDaniel Figueiredo
authored and
Daniel Figueiredo
committed
UX: Explain why build is failing (facebook#1352)
1 parent 17cfd81 commit dff04fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/scripts/build.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function build(previousSizeMap) {
144144
}
145145

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

0 commit comments

Comments
 (0)