Print error (#461)

This commit is contained in:
Dániel Buga 2024-12-09 15:04:55 +01:00 committed by GitHub
parent c0801b9f0a
commit bf94b56f63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

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