Don't drop download error source (#6338)

Part of #6331
This commit is contained in:
konsti 2024-08-21 20:15:57 +02:00 committed by GitHub
parent 45894e074c
commit e7fb452552
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}