summaryrefslogtreecommitdiffstats
path: root/openpgp
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-03-27 19:48:25 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-03-27 19:49:50 +0100
commit52902f0752f7faa95e9112a2618bd889fe4bdc77 (patch)
treef1f3fdbfa0a6118e82fb87405157ca177bb82b93 /openpgp
parentc0e990fe59e6dc4a7abc4ba585c86b18e73b9d59 (diff)
openpgp: Align wording of context with Error::NoBindingSignature.
Diffstat (limited to 'openpgp')
-rw-r--r--openpgp/src/cert/amalgamation.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/src/cert/amalgamation.rs b/openpgp/src/cert/amalgamation.rs
index cb974f20..16ad1175 100644
--- a/openpgp/src/cert/amalgamation.rs
+++ b/openpgp/src/cert/amalgamation.rs
@@ -659,7 +659,8 @@ impl<'a, C> ValidComponentAmalgamation<'a, C>
}
})
.ok_or_else(|| {
- error.map(|e| e.context("No valid binding signature"))
+ error.map(|e| e.context(format!(
+ "No binding signature at time {}", crate::fmt::time(&t))))
.unwrap_or(Error::NoBindingSignature(t).into())
})
.and_then(|c| ComponentAmalgamation::new(cert, (c.0).0)