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 error message when local filepath is not found #3248

Closed
astrojuanlu opened this issue Oct 30, 2023 · 1 comment
Closed

Improve error message when local filepath is not found #3248

astrojuanlu opened this issue Oct 30, 2023 · 1 comment
Assignees
Labels
Issue: Feature Request New feature or improvement to existing feature

Comments

@astrojuanlu
Copy link
Member

Description

This is the outcome of #2965.

When a local filepath on disk fails to be found, instead of a plain No such file or directory, the error message should include what the Current Working Directory (CWD) is.

@ElenaKhaustova
Copy link
Contributor

Previous error message: #2965 (comment)

Currently, the error message uses absolute paths as well as datasets when printing them:

DatasetError: Failed while loading data from dataset
CSVDataset(filepath=/Projects/kedro-tests/filepath-error/do_not_exists/data/01_raw/companies.csv, load_args={}, protocol=file, save_args={'index':
False}).
[Errno 2] No such file or directory: '/Projects/kedro-tests/filepath-error/do_not_exists/data/01_raw/companies.csv'

So no changes are required.

@github-project-automation github-project-automation bot moved this from In Progress to Done in Kedro Framework Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Feature Request New feature or improvement to existing feature
Projects
Status: Done
Development

No branches or pull requests

3 participants