Skip to content

Commit

Permalink
Print error (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani authored Dec 9, 2024
1 parent c0801b9 commit bf94b56
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions src/toolchain/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down

0 comments on commit bf94b56

Please sign in to comment.