Report stack traces through the logger (#1050)
This commit is contained in:
1 parent
4a580a5a42
commit
7486670918
7 files changed
+16
-17
No files matched your search
@@ -377,7 +377,7 @@ public class Expression
|
||||
if (exc instanceof ResolvedException)
|
||||
return exc;
|
||||
// unexpected really - should be caught earlier and converted to InternalExpressionException
|
||||
exc.printStackTrace();
|
||||
CarpetSettings.LOG.error("Unexpected exception while running Scarpet code", exc);
|
||||
return new ExpressionException(c, e, token, "Error while evaluating expression: "+exc);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user