diff --git a/CHANGELOG.md b/CHANGELOG.md index 92b7bf7c..7d33bef8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- espup now prints why an install step failed (#461) + ### Removed ## [0.13.0] - 2024-10-30 diff --git a/src/toolchain/mod.rs b/src/toolchain/mod.rs index b0d16af8..4b65c651 100644 --- a/src/toolchain/mod.rs +++ b/src/toolchain/mod.rs @@ -235,8 +235,12 @@ pub async fn install(args: InstallOpts, install_mode: InstallMode) -> Result<()> tokio::spawn(async move { let res = Retry::spawn(retry_strategy, || async { let res = app.install().await; - if res.is_err() { - warn!("Installation for '{}' failed, retrying", app.name()); + if let Err(ref err) = res { + warn!( + "Installation for '{}' failed, retrying. Error: {}", + app.name(), + err + ); } res })