From 6b18346902207cbd04039b0093f2a9ad0f80bf12 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 1 Jun 2021 01:30:43 +0100 Subject: [PATCH] Slight error message tweaks Signed-off-by: Ian Jackson --- src/bin/otter.rs | 2 +- src/childio.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/otter.rs b/src/bin/otter.rs index 4de91e30..7e3cf2fa 100644 --- a/src/bin/otter.rs +++ b/src/bin/otter.rs @@ -624,7 +624,7 @@ fn connect(ma: &MainOpts) -> Conn { ]; cmd.args(args); - let desc = (&ma.ssh_command, &args).to_debug(); + let desc = format!("ssh: {:?} {:?}", &ma.ssh_command, &args); let (w,r) = childio::run_pair(cmd, desc.clone()) .with_context(|| desc.clone()) diff --git a/src/childio.rs b/src/childio.rs index 98231c68..647a5e79 100644 --- a/src/childio.rs +++ b/src/childio.rs @@ -50,7 +50,7 @@ impl ChildIo { Some(es) => { let mut child = self.child.lock(); child.reported = true; - let ae = anyhow!("{} failed: {}", &child, es); + let ae = anyhow!("{}: failed: {}", &child, es); Err(io::Error::new(ErrorKind::Other, ae)) }, } -- 2.30.2