OFBiz
  1. OFBiz
  2. OFBIZ-5049

Include complete stack trace in groovy script exception messages

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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);

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Jacques Le Roux
            Reporter:
            Christoph Neuroth
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development