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

incorrect error message when all receives incorrect type #1845

Closed
jakkanen opened this issue Oct 30, 2023 · 2 comments
Closed

incorrect error message when all receives incorrect type #1845

jakkanen opened this issue Oct 30, 2023 · 2 comments
Labels

Comments

@jakkanen
Copy link

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

@mikefarah
Copy link
Owner

Thanks for raising, will be fixed in the next release

@mikefarah
Copy link
Owner

Fixed in 4.40.7

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

No branches or pull requests

2 participants