opgpcard: Make status output clearer for empty keyslots, in text output mode

This commit is contained in:
Heiko Schaefer 2022-12-05 11:30:15 +01:00
parent 79117415de
commit 65789b0470
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -312,6 +312,8 @@ impl KeySlotInfo {
if let Some(fp) = &self.fingerprint { if let Some(fp) = &self.fingerprint {
lines.push(format!("Fingerprint: {}", fp)); lines.push(format!("Fingerprint: {}", fp));
} else {
lines.push("Fingerprint: [unset]".to_string());
} }
if let Some(ts) = &self.creation_time { if let Some(ts) = &self.creation_time {
lines.push(format!("Creation Time: {}", ts)); lines.push(format!("Creation Time: {}", ts));