diff options
author | Philipp Herzog | 2022-11-11 12:29:23 +0100 |
---|---|---|
committer | GitHub | 2022-11-11 12:29:23 +0100 |
commit | b011f13bc577b978f52aaefde5605332f7bca7e9 (patch) | |
tree | e3b5c49f20fc9101f4bbae18780b1786ea791214 | |
parent | 41f15759dd8b638e7b4f299730d94d5aa46ab7eb (diff) | |
parent | 28961e2c2d3fd70a93918613ba322df72fe5d001 (diff) |
Merge pull request #181 from serokell/philtaken/rollback_exit_code
Introduce non-zero exit code for rollbacks
Diffstat (limited to '')
-rw-r--r-- | src/cli.rs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -388,6 +388,8 @@ pub enum RunDeployError { PromptDeployment(#[from] PromptDeploymentError), #[error("Failed to revoke profile: {0}")] RevokeProfile(#[from] deploy::deploy::RevokeProfileError), + #[error("Deployment failed, rolled back to previous generation")] + Rollback } type ToDeploy<'a> = Vec<( @@ -577,7 +579,7 @@ async fn run_deploy( } } } - break; + return Err(RunDeployError::Rollback); } succeeded.push((deploy_data, deploy_defs)) } |