aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google
diff options
context:
space:
mode:
authorGravatar cushon <cushon@google.com>2018-01-18 10:03:22 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-01-18 10:04:53 -0800
commit4dce09cdc7914d76401a6f77fd78e0176d173dd1 (patch)
treedb8c7c6e6bde30c623226e23295914f74829ed4c /src/main/java/com/google
parenta0c056e406fab214b30b12851829194fbf908a3a (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.java9
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
+}