Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-5049

Include complete stack trace in groovy script exception messages

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: Trunk
    • Component/s: framework
    • Labels:
      None

      Description

      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:

      -            throw new IllegalArgumentException(errMsg);
      +            throw new IllegalArgumentException(errMsg, e);

        Attachments

          Activity

            People

            • Assignee:
              jacques.le.roux Jacques Le Roux
              Reporter:
              c089 Christoph Neuroth
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: