From: Ian Jackson Date: Wed, 2 Jun 2021 15:54:03 +0000 (+0100) Subject: otter cli: When rejecting removal of current key, print nicely X-Git-Tag: otter-0.7.0~115 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f5363a63d42134d858f6eee2618c3f66c63f77ea;p=otter.git otter cli: When rejecting removal of current key, print nicely Signed-off-by: Ian Jackson --- 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)); } } }