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

Selector index 1 is out of bounds. Index must be >= 1 and <= 0. #286

Open
d33tah opened this issue Nov 12, 2021 · 0 comments
Open

Selector index 1 is out of bounds. Index must be >= 1 and <= 0. #286

d33tah opened this issue Nov 12, 2021 · 0 comments

Comments

@d33tah
Copy link

d33tah commented Nov 12, 2021

Consider the output of the following command:

$ cat /dev/null | xsv select 1
Selector index 1 is out of bounds. Index must be >= 1 and <= 0.

This might happen in practice when xsv is being fed data from a broken script. It looks like this is the relevant piece of code:

Err(format!("Selector index '{}' for name '{}' is \

Perhaps it would make sense to catch this specific error case and throw an error like "input file is empty"?

jqnatividad added a commit to dathere/qsv that referenced this issue Nov 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant