diff options
Diffstat (limited to 'openpgp/examples')
-rw-r--r-- | openpgp/examples/decrypt-with.rs | 3 | ||||
-rw-r--r-- | openpgp/examples/generate-sign-verify.rs | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/openpgp/examples/decrypt-with.rs b/openpgp/examples/decrypt-with.rs index 35393924..2892761e 100644 --- a/openpgp/examples/decrypt-with.rs +++ b/openpgp/examples/decrypt-with.rs @@ -135,6 +135,9 @@ impl VerificationHelper for Helper { BadChecksum { cert, .. } => { eprintln!("Bad signature from {}", cert); }, + Error { error, .. } => { + eprintln!("Error: {}", error); + }, } } } diff --git a/openpgp/examples/generate-sign-verify.rs b/openpgp/examples/generate-sign-verify.rs index 65202609..fefc8a20 100644 --- a/openpgp/examples/generate-sign-verify.rs +++ b/openpgp/examples/generate-sign-verify.rs @@ -118,6 +118,8 @@ impl<'a> VerificationHelper for Helper<'a> { "Missing key to verify signature")), Some(VerificationResult::BadChecksum { .. }) => return Err(failure::err_msg("Bad signature")), + Some(VerificationResult::Error { error, .. }) => + return Err(error), None => return Err(failure::err_msg("No signature")), } |