Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display context for
ruff.configuration
errors (astral-sh#15452)
## Summary I noticed this while trying out astral-sh/ruff-vscode#665 that we use the `Display` implementation to show the error which hides the context. This PR changes it to use the `Debug` implementation and adds the message as a context. ## Test Plan **Before:** ``` 0.001228084s ERROR main ruff_server::session::index::ruff_settings: Unable to find editor-specified configuration file: Failed to parse /private/tmp/hatch-test/ruff.toml ``` **After:** ``` 0.002348750s ERROR main ruff_server::session::index::ruff_settings: Unable to load editor-specified configuration file Caused by: 0: Failed to parse /private/tmp/hatch-test/ruff.toml 1: TOML parse error at line 2, column 18 | 2 | extend-select = ["ASYNC101"] | ^^^^^^^^^^ Unknown rule selector: `ASYNC101` ```
- Loading branch information