Skip to content

Commit

Permalink
fix error message for unknown dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheemdev committed Jun 10, 2024
1 parent 0138370 commit f0108f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/uv/src/commands/project/remove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ pub(crate) async fn remove(
for req in requirements {
let req = Requirement::from(LenientRequirement::from_str(&req)?);
if pyproject.remove_dependency(&req)?.is_none() {
anyhow::bail!("the dependency `req` could not be found in `dependencies`");
anyhow::bail!(
"the dependency `{}` could not be found in `dependencies`",
req.name
);
}
}

Expand Down

0 comments on commit f0108f8

Please sign in to comment.