Improve strategy error message Closes #8629. PiperOrigin-RevId: 253212274
diff --git a/src/main/java/com/google/devtools/build/lib/exec/ProxySpawnActionContext.java b/src/main/java/com/google/devtools/build/lib/exec/ProxySpawnActionContext.java index 5f55234..16f64d7 100644 --- a/src/main/java/com/google/devtools/build/lib/exec/ProxySpawnActionContext.java +++ b/src/main/java/com/google/devtools/build/lib/exec/ProxySpawnActionContext.java
@@ -95,9 +95,10 @@ if (listBasedExecutionStrategySelection) { throw new UserExecException( String.format( - "No usable spawn strategy found for spawn with mnemonic %s. Your --spawn_strategy" - + "or --strategy flags are probably too strict. " - + "Visit https://github.com/bazelbuild/bazel/issues/7480 for migration advises", + "No usable spawn strategy found for spawn with mnemonic %s. Your" + + " --spawn_strategy, --genrule_strategy or --strategy flags are probably too" + + " strict. Visit https://github.com/bazelbuild/bazel/issues/7480 for" + + " migration advice", spawn.getMnemonic())); } else { throw new UserExecException(