Commits

Anonymous committed 3bf23e6

Better error reporting for errornous tags.
o showing the tag name and/or id in error message

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@2680573baa09-0c28-0410-bef9-dab3c582ae83

Comments (0)

Files changed (3)

src/test/com/opensymphony/webwork/views/jsp/ActionTagTest.java

             tag.doEndTag();
             fail("Should have thrown RuntimeException");
         } catch (RuntimeException e) {
-            assertEquals("tag actioncomponent, field name: Action name is required. Example: updatePerson", e.getMessage());
+            assertEquals("tag 'actioncomponent', field 'name': Action name is required. Example: updatePerson", e.getMessage());
         }
     }
 

src/test/com/opensymphony/webwork/views/jsp/IncludeTagTest.java

             tag.doEndTag();
             fail("Should have thrown exception as no URL is specified in setValue");
         } catch (RuntimeException e) {
-            assertEquals("tag include, field value: You must specify the URL to include. Example: /foo.jsp", e.getMessage());
+            assertEquals("tag 'include', field 'value': You must specify the URL to include. Example: /foo.jsp", e.getMessage());
         }
     }
 

src/test/com/opensymphony/webwork/views/jsp/TextTagTest.java

     }
 
     public void testNoNameDefined() throws Exception {
-        String msg = "tag text, field name: You must specify the i18n key. Example: welcome.header";
+        String msg = "tag 'text', field 'name': You must specify the i18n key. Example: welcome.header";
         try {
             tag.doStartTag();
             tag.doEndTag();