diff options
Diffstat (limited to 'tool/src/commands/inspect.rs')
-rw-r--r-- | tool/src/commands/inspect.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tool/src/commands/inspect.rs b/tool/src/commands/inspect.rs index f2347610..b88b9649 100644 --- a/tool/src/commands/inspect.rs +++ b/tool/src/commands/inspect.rs @@ -178,10 +178,8 @@ fn inspect_key<P, R>(output: &mut dyn io::Write, R: openpgp::packet::key::KeyRole { if let Some(sig) = binding_signature { - if sig.key_expired(key, None) { - writeln!(output, "{} Expired", indent)?; - } else if ! sig.key_alive(key, None) { - writeln!(output, "{} Not yet valid", indent)?; + if let Err(e) = sig.key_alive(key, None) { + writeln!(output, "{} Invalid: {}", indent, e)?; } } |