Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misleading errormessage #22

Open
MaximD3veloper opened this issue Nov 28, 2023 · 0 comments
Open

misleading errormessage #22

MaximD3veloper opened this issue Nov 28, 2023 · 0 comments

Comments

@MaximD3veloper
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant