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 messages for malformed config files #8801

Merged
merged 2 commits into from
Mar 11, 2022

Conversation

jcrist
Copy link
Member

@jcrist jcrist commented Mar 11, 2022

This adds a nice error message if a config file fails to load properly
due to either a parsing error or loading without a top-level dict. The
error message includes the file path and information on what was
malformed, which should better help the user fix things.

Fixes #8799.

  • Closes #xxxx
  • Tests added / passed
  • Passes pre-commit run --all-files

This adds a nice error message if a config file fails to load properly
due to either a parsing error or loading without a top-level dict. The
error message includes the file path and information on what was
malformed, which should better help the user fix things.
@jcrist jcrist merged commit fc911b6 into dask:main Mar 11, 2022
@jcrist jcrist deleted the improve-malformed-config-errors branch March 11, 2022 20:03
djhoese pushed a commit to djhoese/donfig that referenced this pull request Apr 10, 2023
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

Successfully merging this pull request may close these issues.

Dask config fails to load
1 participant