Reviewers: jat,
Description:
Include the property name in the error message when a single-valued
property does not have exactly one value
Please review this at http://gwt-code-reviews.appspot.com/1348801/show
Affected files:
M
dev/core/src/com/google/gwt/core/ext/linker/impl/StandardConfigurationProperty.java
Index:
dev/core/src/com/google/gwt/core/ext/linker/impl/StandardConfigurationProperty.java
===================================================================
---
dev/core/src/com/google/gwt/core/ext/linker/impl/StandardConfigurationProperty.java
(revision 9681)
+++
dev/core/src/com/google/gwt/core/ext/linker/impl/StandardConfigurationProperty.java
(working copy)
@@ -37,8 +37,8 @@
throw new IllegalArgumentException("values is null");
}
if (!p.allowsMultipleValues() && values.size() != 1) {
- throw new IllegalArgumentException(
- "p is single-valued but values.size != 1");
+ throw new IllegalArgumentException(p.getName()
+ + " property is single-valued but values.size() != 1");
}
}
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors