From 133fc46d0a73ecdfc9c32bc2a9b2d5cd7a367157 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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ofborg/src/vcs/gerrit/ssh.rs b/ofborg/src/vcs/gerrit/ssh.rs index 63b3a51..c81e16c 100644 --- a/ofborg/src/vcs/gerrit/ssh.rs +++ b/ofborg/src/vcs/gerrit/ssh.rs @@ -19,7 +19,13 @@ 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| { + eprintln!("{:?}", e); + panic!( + "Failed to launch SSH master to destination '{}' due to the previous error", + uri + ) + }); Self { session: Session::new_process_mux(tempdir), }