Report stack traces through the logger (#1050)

This commit is contained in:
altrisi authored and GitHub committed 2021-10-11 03:37:30 -03:00
1 parent 4a580a5a42
commit 7486670918
7 files changed
+16 -17

No files matched your search

+1 -1
View File
@@ -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);
}