Skip to content

incorrect error message when all receives incorrect type #1845

Closed
@jakkanen

Description

Describe the bug
When all receives an incorrect type, the error refers to any

Version of yq: 4.35.2
Operating system: mac
Installed via: homebrew

Input Yaml
data1.yml:

values: 0

Command
The command you ran:

yq '.values | all' data1.yml

Actual behavior

Error: any only supports arrays, was !!int

Expected behavior

Error: all only supports arrays, was !!int

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions