Christoph Neuroth created OFBIZ-5049:
----------------------------------------

             Summary: Include complete stack trace in groovy script exception 
messages
                 Key: OFBIZ-5049
                 URL: https://issues.apache.org/jira/browse/OFBIZ-5049
             Project: OFBiz
          Issue Type: Improvement
          Components: framework
    Affects Versions: SVN trunk
            Reporter: Christoph Neuroth


When a groovy script fails, currently you can only follow the stack trace to 
org.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:348), but not into 
the failed script itself, which makes debugging really hard.

This can easily be improved by wrapping the exception there:

{code}-            throw new IllegalArgumentException(errMsg);
+            throw new IllegalArgumentException(errMsg, e);{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to