diff options
author | 2018-01-18 10:03:22 -0800 | |
---|---|---|
committer | 2018-01-18 10:04:53 -0800 | |
commit | 4dce09cdc7914d76401a6f77fd78e0176d173dd1 (patch) | |
tree | db8c7c6e6bde30c623226e23295914f74829ed4c /src/main/java/com/google | |
parent | a0c056e406fab214b30b12851829194fbf908a3a (diff) |
Add a missing format argument to an error message
PiperOrigin-RevId: 182396321
Diffstat (limited to 'src/main/java/com/google')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/analysis/AspectAwareAttributeMapper.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/AspectAwareAttributeMapper.java b/src/main/java/com/google/devtools/build/lib/analysis/AspectAwareAttributeMapper.java index c866cbd84b..bdd31e35a8 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/AspectAwareAttributeMapper.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/AspectAwareAttributeMapper.java @@ -80,8 +80,11 @@ class AspectAwareAttributeMapper implements AttributeMap { "attribute %s has type %s, not expected type %s", attributeName, attribute.getType(), type)); } else { - throw new UnsupportedOperationException("Attribute '%s' comes from an aspect. " - + "Value retrieval for aspect attributes is not supported."); + throw new UnsupportedOperationException( + String.format( + "Attribute '%s' comes from an aspect. " + + "Value retrieval for aspect attributes is not supported.", + attributeName)); } } } @@ -177,4 +180,4 @@ class AspectAwareAttributeMapper implements AttributeMap { return Location.BUILTIN; } } -}
\ No newline at end of file +} |