[ http://issues.apache.org/jira/browse/JELLY-233?page=all ]

dion gillard resolved JELLY-233.
--------------------------------

    Resolution: Fixed

Committed - good idea.

> JellyException.getMessage() shouldn't show pointless "null:-1:-1:<null>" in 
> the error message
> ---------------------------------------------------------------------------------------------
>
>                 Key: JELLY-233
>                 URL: http://issues.apache.org/jira/browse/JELLY-233
>             Project: Commons Jelly
>          Issue Type: Improvement
>          Components: core / taglib.core
>    Affects Versions: 1.1
>            Reporter: Kohsuke Kawaguchi
>
> JellyExceptions are often created without supplying location information. A 
> little change to the JellyException.getMessage() can improve the readability 
> of the error message, as follows:
>     public String getMessage() {
>         if(fileName==null && lineNumber==-1 && columnNumber==-1 && 
> elementName==null)
>             return getReason();
>         else
>             return fileName + ":" + lineNumber + ":" + columnNumber + ": <" + 
> elementName + "> " + getReason();
>     }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to