Fix how user IDs are displayed.

This commit is contained in:
Neal H. Walfield 2024-10-28 11:41:03 +01:00
parent e8622a0bdd
commit 1308334de6
No known key found for this signature in database
GPG Key ID: 6863C9AD5B4D22D3

View File

@ -207,7 +207,7 @@ fn userid_add(
if !exists.is_empty() {
return Err(anyhow::anyhow!(
"The certificate already contains the User ID(s) {}.",
exists.iter().map(|s| format!("{:?}", s)).collect::<Vec<_>>()
exists.iter().map(|s| format!("{:?}", String::from_utf8_lossy(s.value()))).collect::<Vec<_>>()
.join(", "),
));
}