Skip to content

Improve error message for wrong value in acos() #844

@ronja-ui

Description

@ronja-ui

Description

The current error message for a query that has acos() with incorrect value and a simple math expression is the following:

Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.

If the query that contains acos() is several lines long, it's hard to say on which line the problem lies or what the actual problem is. acos() takes only values between -1 and 1 and prints NaN if the value is outside of that range.

You can try to trigger the error message with the following query:

| makeresults
| eval test = acos(2)*1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions