Use the visual idiom for cert, userid pairs when importing revs.

- See #486.
This commit is contained in:
Justus Winter 2024-12-15 19:34:19 +01:00
parent 93851b524a
commit f2f09fbc51
No known key found for this signature in database
GPG Key ID: 686F55B4AB2B3386

View File

@ -277,22 +277,18 @@ fn import_rev(o: &mut dyn std::io::Write,
{
let cert = cert.insert_packets(sig.clone())?;
let fingerprint = cert.fingerprint();
let sanitized_userid = sq.best_userid(&cert, true);
ui::emit_cert(o, sq, &cert)?;
if let Err(err) = cert_store.update_by(Arc::new(cert.into()),
stats)
{
wwriteln!(o,
"Error importing revocation certificate \
for {}, {}: {}",
fingerprint, sanitized_userid, err);
wwriteln!(stream = o, initial_indent = " - ",
"error importing revocation certificate: {}",
err);
stats.certs.inc_errors();
continue;
} else {
wwriteln!(o,
"Imported revocation certificate \
for {}, {}",
fingerprint, sanitized_userid);
wwriteln!(stream = o, initial_indent = " - ",
"imported revocation certificate");
}
return Ok(());