chore(vcs/gerrit/ssh): add more error reporting when creating the SSH master
Otherwise, it's hard to debug. Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
parent
af42f93996
commit
74a066e887
|
@ -19,7 +19,12 @@ impl GerritSSHApi {
|
||||||
let tempdir = builder
|
let tempdir = builder
|
||||||
.launch_master(destination)
|
.launch_master(destination)
|
||||||
.await
|
.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 {
|
Self {
|
||||||
session: Session::new_process_mux(tempdir),
|
session: Session::new_process_mux(tempdir),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue