From e7fb452552db2817c21f90d98cba8b4fed325f4f Mon Sep 17 00:00:00 2001 From: konsti Date: Wed, 21 Aug 2024 20:15:57 +0200 Subject: [PATCH] Don't drop download error source (#6338) Part of #6331 --- crates/uv/src/commands/python/install.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/uv/src/commands/python/install.rs b/crates/uv/src/commands/python/install.rs index 9fb3581f9..6f221a666 100644 --- a/crates/uv/src/commands/python/install.rs +++ b/crates/uv/src/commands/python/install.rs @@ -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); }