Improve unexpected java exception in scarpet error slightly

This commit is contained in:
altrisi committed 2023-01-20 18:53:26 +01:00
1 parent 1f38a2e89c
commit 1eb25ba1b5
1 file changed
+1 -1
+1 -1
View File
@@ -377,7 +377,7 @@ public class Expression
return exc; return exc;
// unexpected really - should be caught earlier and converted to InternalExpressionException // unexpected really - should be caught earlier and converted to InternalExpressionException
CarpetSettings.LOG.error("Unexpected exception while running Scarpet code", exc); CarpetSettings.LOG.error("Unexpected exception while running Scarpet code", exc);
return new ExpressionException(c, e, token, "Error while evaluating expression: "+exc); return new ExpressionException(c, e, token, "Internal error (please report this issue to Carpet) while evaluating: " + exc);
} }
public void addUnaryOperator(String surface, boolean leftAssoc, Function<Value, Value> fun) public void addUnaryOperator(String surface, boolean leftAssoc, Function<Value, Value> fun)