Skip to content

Commit

Permalink
Don't drop download error source (#6338)
Browse files Browse the repository at this point in the history
Part of #6331
  • Loading branch information
konstin authored Aug 21, 2024
1 parent 45894e0 commit e7fb452
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/uv/src/commands/python/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,13 @@ pub(crate) async fn install(
for (key, err) in errors {
writeln!(
printer.stderr(),
"{}: Failed to install {}: {err}",
"{}: Failed to install {}",
"error".red().bold(),
key.green(),
key.green()
)?;
for err in anyhow::Error::new(err).chain() {
writeln!(printer.stderr(), " {}: {}", "Caused by".red().bold(), err)?;
}
}
return Ok(ExitStatus::Failure);
}
Expand Down

0 comments on commit e7fb452

Please sign in to comment.