Skip to content

Commit 28961e2

Browse files
committed
Introduce non-zero exit code for rollbacks
Closes #179
1 parent 41f1575 commit 28961e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cli.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,8 @@ pub enum RunDeployError {
388388
PromptDeployment(#[from] PromptDeploymentError),
389389
#[error("Failed to revoke profile: {0}")]
390390
RevokeProfile(#[from] deploy::deploy::RevokeProfileError),
391+
#[error("Deployment failed, rolled back to previous generation")]
392+
Rollback
391393
}
392394

393395
type ToDeploy<'a> = Vec<(
@@ -577,7 +579,7 @@ async fn run_deploy(
577579
}
578580
}
579581
}
580-
break;
582+
return Err(RunDeployError::Rollback);
581583
}
582584
succeeded.push((deploy_data, deploy_defs))
583585
}

0 commit comments

Comments
 (0)