From 837fbdbb892dd8212509ef0af1b33ed0198c96d2 Mon Sep 17 00:00:00 2001 From: Jay Phelps Date: Thu, 5 Jan 2017 12:14:36 -0800 Subject: [PATCH] More descriptive error message for env.CI = true warnings causing failures Related: #944 --- packages/react-scripts/scripts/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/scripts/build.js b/packages/react-scripts/scripts/build.js index 42be50d43a8..1e1b6217043 100644 --- a/packages/react-scripts/scripts/build.js +++ b/packages/react-scripts/scripts/build.js @@ -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); }