diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/BlazeOptionHandler.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeOptionHandler.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeOptionHandler.java index c7c72ec77a..812854a84e 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeOptionHandler.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeOptionHandler.java @@ -541,7 +541,13 @@ public abstract class BlazeOptionHandler { // we will only accept --config=value, and will not accept value on a following line. int charOfConfigValue = arg.indexOf('='); if (charOfConfigValue < 0) { - throw new OptionsParsingException("Config flag was provided without a value."); + throw new OptionsParsingException( + String.format( + "In file %s, the definition of config %s expands to another config " + + "that either has no value or is not in the form --config=value. For " + + "recursive config definitions, please do not provide the value in a " + + "separate token, such as in the form '--config value'.", + rcArgs.rcFile, configToExpand)); } String newConfigValue = arg.substring(charOfConfigValue + 1); LinkedHashSet<String> extendedConfigAncestorSet = |