From f5363a63d42134d858f6eee2618c3f66c63f77ea Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 2 Jun 2021 16:54:03 +0100 Subject: [PATCH] otter cli: When rejecting removal of current key, print nicely Signed-off-by: Ian Jackson --- src/bin/otter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/otter.rs b/src/bin/otter.rs index 8de61f8f..c74e3b69 100644 --- a/src/bin/otter.rs +++ b/src/bin/otter.rs @@ -2102,8 +2102,8 @@ mod set_ssh_keys { for c in &st.currently { if c.thisconn_retain { throw!(anyhow!( - "refusing to remove currently-being-used key #{} {:?} {:?}", - c.index, &c.mkr.data, &c.mkr.comment)); + "refusing to remove currently-being-used key #{} {}", + c.index, &c.mkr)); } } } -- 2.30.2