Reviewers: chenglee_google.com,
Description:
Better error message on garbage in text.
Review by: [email protected]
Please review this at http://gwt-code-reviews.appspot.com/748801/show
Affected files:
M user/src/com/google/gwt/uibinder/rebind/XMLElement.java
Index: user/src/com/google/gwt/uibinder/rebind/XMLElement.java
===================================================================
--- user/src/com/google/gwt/uibinder/rebind/XMLElement.java (revision 8503)
+++ user/src/com/google/gwt/uibinder/rebind/XMLElement.java (working copy)
@@ -485,7 +485,8 @@
// Make sure there are no children left but empty husks
for (XMLElement child : consumeChildElementsNoEmptyCheck()) {
if (child.hasChildNodes() || child.getAttributeCount() > 0) {
- logger.die(this, "Element has illegal child %s", child);
+ logger.die(this, "Element has illegal child %s in a text-only
context. "
+ + "Perhaps you are trying to use HTML where text is
required?", child);
}
}
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors