diff options
Diffstat (limited to 'src/main/java/com/google/devtools')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/packages/RuleClass.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/packages/RuleClass.java b/src/main/java/com/google/devtools/build/lib/packages/RuleClass.java index d838923691..75fd947223 100644 --- a/src/main/java/com/google/devtools/build/lib/packages/RuleClass.java +++ b/src/main/java/com/google/devtools/build/lib/packages/RuleClass.java @@ -766,8 +766,9 @@ public class RuleClass { // Only rules that allow per target execution constraints need this attribute. Preconditions.checkState( !this.attributes.containsKey("exec_compatible_with"), - "Rule should not already define the attribute \"exec_compatible_with\"" - + " if executionPlatformConstraintsAllowed is set to PER_TARGET"); + "Rule %s should not already define the attribute \"exec_compatible_with\"" + + " because executionPlatformConstraintsAllowed is set to PER_TARGET", + key); this.add( attr("exec_compatible_with", BuildType.LABEL_LIST) .allowedFileTypes() |