Revision: 10308
Author:   [email protected]
Date:     Thu Jun  9 09:49:05 2011
Log:      Better error message for ui:attribute

Review at http://gwt-code-reviews.appspot.com/1454809

Review by: [email protected]
http://code.google.com/p/google-web-toolkit/source/detail?r=10308

Modified:
 /trunk/user/src/com/google/gwt/uibinder/rebind/messages/MessagesWriter.java

=======================================
--- /trunk/user/src/com/google/gwt/uibinder/rebind/messages/MessagesWriter.java Fri May 27 18:15:05 2011 +++ /trunk/user/src/com/google/gwt/uibinder/rebind/messages/MessagesWriter.java Thu Jun 9 09:49:05 2011
@@ -121,7 +121,8 @@
         logger.die(child, "Missing name attribute");
       }
       if (!elem.hasAttribute(attributeName)) {
-        logger.die(child, "Enclosing element has no matching attribute");
+        logger.die(child, "The enclosing element needs to provide a "
+            + "default value for attribute \"%s\"", attributeName);
       }
       XMLAttribute attribute = elem.getAttribute(attributeName);
       if (attribute.hasComputedValue()) {

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to