Skip to content

Commit

Permalink
qa
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Zachmann <[email protected]>
  • Loading branch information
JanZachmann committed Oct 23, 2024
1 parent 27029cb commit 3f361fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ssh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,11 @@ async fn request_ssh_tunnel(
.await
.map_err(|err| anyhow::anyhow!("Failed to perform ssh tunnel request: {err}"))?;

if !response.status().is_success() {
let status = response.status();

if !status.is_success() {
let error_msg = into_error_message(response).await;
anyhow::bail!("Something went wrong while creating the ssh tunnel: {error_msg}");
anyhow::bail!("Something went wrong while creating the ssh tunnel. status: {status}, message: {error_msg}");
}

Ok(response.json().await?)
Expand Down

0 comments on commit 3f361fa

Please sign in to comment.