Some cleanups

- Remove unused errors.
- Add doc comments.
This commit is contained in:
Malte Meiboom
2026-05-06 16:30:42 +02:00
parent c0fe0e91ea
commit 21b45d1702
6 changed files with 14 additions and 17 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
//! introducer add subcommand
use anyhow::Result;
use sequoia_cert_store::Store;
use sequoia_openpgp::cert::ValidCert;
@@ -32,7 +34,7 @@ pub async fn dispatch(cmd: IntroducerAddCommand, config: HuskConfigContainer) ->
if let Some(cert) = certs.first() {
Introducer::create(&context, cert, cmd.domains)?;
} else {
return Err(CommandError::CertNotFound(fpr).into());
return Err(CommandError::CertNotUsable(fpr).into());
}
Ok(())