-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
Iter function with no outputs in a path(...) throws errors #191
Comments
Maybe I rejected against |
Yes being able to output an error without causing invalid path error would be good i think. Being able to make it work like So would a sane behaviour for a |
Fixed the issue. |
Fixes: Iter function with no outputs in a path(...) throws errors itchyny/gojq#191
Thanks! |
Version: 9bf7af3
I noticed while debugging a path expression query and because in fq debug is implemented by some io functions that print and return empty iterator. So debug is defined something like this:
def debug: (["DEBUG", .] | tojson | _write), .
Reproduction:
I would have expect it to work like empty. That is only do invalid path check if the Iter outputted some value.
The text was updated successfully, but these errors were encountered: