aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Melnikov2023-11-02 11:21:55 +0100
committerGitHub2023-11-02 11:21:55 +0100
commitd50737080327575d78fe7490b20fcc3eba9f1d72 (patch)
treeb39d469dfcfb6d0ee643f17c4ea90e583d6b9c08
parente3f41832680801d0ee9e2ed33eb63af398b090e9 (diff)
parent6f77c65c258043f65ec203f895fe17cc613fcaae (diff)
Merge pull request #242 from serokell/phil/fix-rollback-error-message
[Chore] fix error messages claiming to have rolled back when not actually doing so
Diffstat (limited to '')
-rw-r--r--src/cli.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 9140d6d..cc17ea9 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -582,8 +582,8 @@ async fn run_deploy(
if dry_activate {
info!("dry run, not rolling back");
}
- info!("Revoking previous deploys");
if rollback_succeeded && cmd_overrides.auto_rollback.unwrap_or(true) {
+ info!("Revoking previous deploys");
// revoking all previous deploys
// (adheres to profile configuration if not set explicitely by
// the command line)
@@ -592,8 +592,9 @@ async fn run_deploy(
deploy::deploy::revoke(*deploy_data, *deploy_defs).await?;
}
}
+ return Err(RunDeployError::Rollback);
}
- return Err(RunDeployError::Rollback);
+ return Err(RunDeployError::DeployProfile(e))
}
succeeded.push((deploy_data, deploy_defs))
}