diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-04-26 14:58:03 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-04-26 14:58:03 +0200 |
commit | 685194a2a88654bde5af079a5bb6577ec707fb5c (patch) | |
tree | f5625ded9f061a64a26560c57c46e7e0228e5f7c /openpgp | |
parent | 4cc78aabb4c38c036de24213059cfb3fda9a7379 (diff) |
Revert "openpgp: Improve error message, avoid stuttering."
This reverts commit d57bd33cf9bddda77dff8e6508ebb1e4902f9294.
Diffstat (limited to 'openpgp')
-rw-r--r-- | openpgp/src/parse.rs | 3 |
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()); } |