Commits

phil  committed c54ee33

Updated error message when a certain method or do method cannot be found on a class.

git-svn-id: http://svn.opensymphony.com/svn/xwork/branches/xwork_1-2@1387e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 594681f
  • Branches xwork_1-2

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork/DefaultActionInvocation.java

 
             return (String) method.invoke(action, new Object[0]);
         } catch (NoSuchMethodException e) {
-            throw new IllegalArgumentException("Neither " + methodName + "() nor it's doXxx() equivalent is defined in action " + getAction().getClass() + "");
+            throw new IllegalArgumentException("Neither " + methodName + "() nor do" + 
+            		methodName.substring(0, 1).toUpperCase() + methodName.substring(1) + 
+            		"() is found in action " + getAction().getClass());
         } catch (InvocationTargetException e) {
             // We try to return the source exception.
             Throwable t = e.getTargetException();