Skip to content

Commit

Permalink
fix: Emit a more useful error if an extend points at a non-existent…
Browse files Browse the repository at this point in the history
… ruff.toml file.
  • Loading branch information
DanCardin committed Mar 9, 2023
1 parent bd05a8a commit 62b0526
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/ruff/src/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ pub fn resolve_configuration(
}

// Resolve the current path.
let options = pyproject::load_options(&path)?;
let options = pyproject::load_options(&path)
.map_err(|err| anyhow!("Failed to parse `{}`: {}", path.to_string_lossy(), err))?;
let project_root = relativity.resolve(&path);
let configuration = Configuration::from_options(options, &project_root)?;

Expand Down

0 comments on commit 62b0526

Please sign in to comment.