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 on malformed known_package_places #276

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Freso
Copy link

@Freso Freso commented Feb 16, 2024

The current traceback on a bad known_package_places file doesn’t make it immediately obvious that it’s a local file’s JSON that has been garbled rather than a response from AURweb or elsewhere that’s gone awry.

This commit adds a single message to the JSON decode error to note which file the error is happening in and the user can then either delete the file or try and fix it, depending on the state of the file in question.

The current traceback on a bad known_package_places file doesn’t make it
immediately obvious that it’s a local file’s JSON that has been garbled
rather than a response from AURweb or elsewhere that’s gone awry.

This commit adds a single message to the JSON decode error to note which
file the error is happening in and the user can then either delete the
file or try and fix it, depending on the state of the file in question.
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.

1 participant