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

Improve "Cannot index ...." error #419

Closed
nicowilliams opened this issue Jun 16, 2014 · 0 comments
Closed

Improve "Cannot index ...." error #419

nicowilliams opened this issue Jun 16, 2014 · 0 comments
Milestone

Comments

@nicowilliams
Copy link
Contributor

This error:

jq: error: Cannot index array with string

happens easily when using expressions like .a when . is an array, which can happen if the used forgets an extra .[]. Perhaps we should change that to something that might help the user?

One possibility would be to include the string, if it's short.

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

No branches or pull requests

1 participant