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

Error messages when file path specification is wrong #1082

Open
alexander-held opened this issue Apr 16, 2024 · 1 comment
Open

Error messages when file path specification is wrong #1082

alexander-held opened this issue Apr 16, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@alexander-held
Copy link
Member

Is your feature request related to a problem? Please describe.
I was testing running over a local file with a LocalCluster and messed up the file path. dataset_tools.preprocess then crashes and reports

IndexError: cannot slice EmptyArray (of length 0) with ['file', 'object_path', 'steps', 'uuid']: not an array of records

This error occurred while attempting to slice

    <Array [None] type='1 * ?unknown'>

with

    ['file', 'object_path', 'steps', 'uuid']

Describe the solution you'd like
I think it would be helpful to catch this issue explicitly to have a more informative error message like "no file found at this path".

Describe alternatives you've considered
No change, so leave it to user to discover underlying problem.

Additional context
n/a

@alexander-held alexander-held added the enhancement New feature or request label Apr 16, 2024
@jennetd
Copy link

jennetd commented Oct 29, 2024

I just encountered the same issue and agree a more descriptive error would be much better

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

No branches or pull requests

2 participants