expression-evaluator-c-sharp icon indicating copy to clipboard operation
expression-evaluator-c-sharp copied to clipboard

misleading errormessage

Open MaximD3veloper opened this issue 2 years ago • 0 comments

When a collection variable is given to a operation without expecting one, something like "1+2 + List", an exception is thrown:

System.Exception: PLUS operator can only be applied to numeric, string, date at org.matheval.Operators.Binop.PlusOperator.Calculate(Object left, Object right, ExpressionContext dc) at org.matheval.Expression.VisitNode(Node root) at org.matheval.Expression.EvalT

The message is a little misleading, because the items in this list are either numeric, string or date. Is it possible for you to change the error message to something more understandable?

MaximD3veloper avatar Nov 28 '23 09:11 MaximD3veloper