Skip to content

misleading errormessage #22

@MaximD3veloper

Description

@MaximD3veloper

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions