Skip to content

Commit c8d10ac

Browse files
jayphelpsTimer
authored andcommitted
UX: Explain why build is failing (facebook#1352)
1 parent f2df11d commit c8d10ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)