Skip to content

Commit

Permalink
add more context to certain errors
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Fisher <[email protected]>
  • Loading branch information
bacongobbler committed Dec 1, 2023
1 parent 58b022b commit 6daec05
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/commands/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,12 @@ impl DeployCommand {
}
client
.add_revision(storage_id.clone(), version.clone())
.await?;
.await
.context("Unable to add revision")?;
let existing_channel_id = client
.get_channel_id(app_id, SPIN_DEPLOY_CHANNEL_NAME)
.await?;
.await
.context("Could not get existing channel id")?;
let active_revision_id = client.get_revision_id(app_id, &version).await?;
client
.patch_channel(
Expand Down Expand Up @@ -271,7 +273,8 @@ impl DeployCommand {

client
.add_revision(storage_id.clone(), version.clone())
.await?;
.await
.context("Unable to add revision")?;

let active_revision_id = client.get_revision_id(app_id, &version).await?;

Expand Down

0 comments on commit 6daec05

Please sign in to comment.