From 58e3891d7092b7fe28126d411fb602d307538e89 Mon Sep 17 00:00:00 2001 From: Googler Date: Thu, 31 Aug 2017 00:41:43 +0200 Subject: Remind user of the --experimental_allow_project_files flag when they try using project support PiperOrigin-RevId: 167060880 --- .../google/devtools/build/lib/runtime/commands/ProjectFileSupport.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/com/google/devtools') diff --git a/src/main/java/com/google/devtools/build/lib/runtime/commands/ProjectFileSupport.java b/src/main/java/com/google/devtools/build/lib/runtime/commands/ProjectFileSupport.java index 9d775df925..dd43887930 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/commands/ProjectFileSupport.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/commands/ProjectFileSupport.java @@ -52,7 +52,8 @@ public final class ProjectFileSupport { throw new OptionsParsingException("Cannot handle more than one + argument yet"); } if (!optionsParser.getOptions(CommonCommandOptions.class).allowProjectFiles) { - throw new OptionsParsingException("project file support is not enabled"); + throw new OptionsParsingException("project file support is not enabled. " + + "Pass --experimental_allow_project_files to enable."); } // TODO(bazel-team): This is currently treated as a path relative to the workspace - if the // cwd is a subdirectory of the workspace, that will be surprising, and we should interpret it -- cgit v1.2.3