From 74a066e887f3a8f8c8ba6314f9c7ee6ecc0ea947 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Mon, 16 Dec 2024 00:37:07 +0100 Subject: [PATCH] chore(vcs/gerrit/ssh): add more error reporting when creating the SSH master Otherwise, it's hard to debug. Signed-off-by: Raito Bezarius --- ofborg/src/vcs/gerrit/ssh.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ofborg/src/vcs/gerrit/ssh.rs b/ofborg/src/vcs/gerrit/ssh.rs index 63b3a51..288a06c 100644 --- a/ofborg/src/vcs/gerrit/ssh.rs +++ b/ofborg/src/vcs/gerrit/ssh.rs @@ -19,7 +19,12 @@ impl GerritSSHApi { let tempdir = builder .launch_master(destination) .await - .unwrap_or_else(|_| panic!("Failed to launch SSH master to destination '{}'", uri)); + .unwrap_or_else(|e| { + panic!( + "Failed to launch SSH master to destination '{}' due to '{}'", + uri, e + ) + }); Self { session: Session::new_process_mux(tempdir), }