summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2023-04-26 14:58:03 +0200
committerJustus Winter <justus@sequoia-pgp.org>2023-04-26 14:58:03 +0200
commit685194a2a88654bde5af079a5bb6577ec707fb5c (patch)
treef5625ded9f061a64a26560c57c46e7e0228e5f7c
parent4cc78aabb4c38c036de24213059cfb3fda9a7379 (diff)
Revert "openpgp: Improve error message, avoid stuttering."
-rw-r--r--openpgp/src/parse.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/src/parse.rs b/openpgp/src/parse.rs
index fed7287b..d8b4fd07 100644
--- a/openpgp/src/parse.rs
+++ b/openpgp/src/parse.rs
@@ -1836,7 +1836,8 @@ impl Subpacket {
let total_out = php.reader.total_out();
if total_out_before + len != total_out {
return Err(Error::MalformedPacket(
- format!("body length is {} bytes, but read {}",
+ format!("Malformed subpacket: \
+ body length is {} bytes, but read {}",
len, total_out - total_out_before)).into());
}