[
http://jira.magnolia-cms.com/browse/MGNLGROOVY-22?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=28099#action_28099
]
Grégory Joseph commented on MGNLGROOVY-22:
------------------------------------------
Leaving open in case there is a simple way to colorize error messages (seems
like the script escapes html we print, so wrapping the error message in a
simple span did not work).
We might also want to differentiate between exceptions, because with a
MissingPropertyException, this is now redundant:
{code}
mgnl> blah
MissingPropertyException: No such property: blah for class: Script1
{code}
> Show exception class name when printing out error message in console
> --------------------------------------------------------------------
>
> Key: MGNLGROOVY-22
> URL: http://jira.magnolia-cms.com/browse/MGNLGROOVY-22
> Project: Magnolia Groovy Module
> Issue Type: Improvement
> Reporter: Grégory Joseph
> Assignee: Grégory Joseph
> Fix For: 1.0.1
>
>
> In case of a PathNotFoundException, for example, the current output is pretty
> confusing, since the message of such exception is simply the path that we
> tried to reach.
> {code}
> mgnl> ctx.getHierarchyManager('website').getContent('/foobar')
> foobar
> {code}
> This kind of output would probably be a little more helpful:
> {code}
> mgnl> ctx.getHierarchyManager('website').getContent('/foobar')
> PathNotFoundException: foobar
> {code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------