aurman icon indicating copy to clipboard operation
aurman copied to clipboard

Improve error on malformed known_package_places

Open Freso opened this issue 1 year ago • 0 comments

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.

Freso avatar Feb 16 '24 14:02 Freso