Skip to content

Commit

Permalink
improve diagnostics, fix #1353
Browse files Browse the repository at this point in the history
  • Loading branch information
MingweiSamuel committed Jul 18, 2024
1 parent b663e69 commit b943cba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion hydro_deploy/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dyn-clone = "1"
futures = "0.3.26"
futures-core = "0.3.26"
hydroflow_cli_integration = { path = "../hydroflow_cli_integration", version = "^0.5.2" }
indicatif = "0.17.6"
indicatif = "0.17.8"
memo-map = "0.3.2"
nanoid = "0.4.0"
nix = "0.26.2"
Expand Down
6 changes: 4 additions & 2 deletions hydro_deploy/core/src/terraform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ async fn display_apply_outputs(stdout: &mut ChildStdout) {
(
channel_send,
tokio::task::spawn(ProgressTracker::leaf(id, async move {
channel_recv.await.unwrap();
// `Err(RecvError)` means send side was dropped due to another error.
// Ignore here to prevent spurious panic stack traces.
let _result = channel_recv.await;
})),
),
);
Expand Down Expand Up @@ -255,7 +257,7 @@ impl TerraformApply {
self.child = None;

if !status.unwrap().success() {
bail!("Terraform deployment failed");
bail!("Terraform deployment failed, see `[terraform]` logs above.");
}

let mut output_command = Command::new("terraform");
Expand Down

0 comments on commit b943cba

Please sign in to comment.