summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-05-11 15:03:03 +0200
committerNeal H. Walfield <neal@pep.foundation>2019-05-11 15:03:03 +0200
commit2187db7585b1bea8830ea22bf27d59d4961da6a0 (patch)
tree78a77dcb3f5720895b0627c6bbe48a59572a794d
parentdc08ff046153081e6d3cb112c7bafa5465e71462 (diff)
openpgp: Make error message more accurate
- A TPK is not a message in our terminology.
-rw-r--r--openpgp/src/tpk/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/tpk/mod.rs b/openpgp/src/tpk/mod.rs
index 83af3e08..e0677a34 100644
--- a/openpgp/src/tpk/mod.rs
+++ b/openpgp/src/tpk/mod.rs
@@ -249,7 +249,7 @@ impl KeyringValidator {
// Unknown token.
self.error = Some(TPKParserError::OpenPGP(
Error::MalformedMessage(
- format!("Invalid OpenPGP message: unexpected packet: {:?}",
+ format!("Invalid TPK: unexpected packet: {:?}",
tag).into())));
self.tokens.clear();
return;