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);