diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-04-05 17:10:31 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-04-07 13:43:36 +0200 |
commit | d57bd33cf9bddda77dff8e6508ebb1e4902f9294 (patch) | |
tree | cbb995e71b1f42ae6198cd9660ea425f36b48ed9 /openpgp/src/parse.rs | |
parent | c7a1fb743e26af9bcae56d2e5cefab268306b9c6 (diff) |
openpgp: Improve error message, avoid stuttering.
Diffstat (limited to 'openpgp/src/parse.rs')
-rw-r--r-- | openpgp/src/parse.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openpgp/src/parse.rs b/openpgp/src/parse.rs index 0225d79b..8af14612 100644 --- a/openpgp/src/parse.rs +++ b/openpgp/src/parse.rs @@ -1836,8 +1836,7 @@ impl Subpacket { let total_out = php.reader.total_out(); if total_out_before + len != total_out { return Err(Error::MalformedPacket( - format!("Malformed subpacket: \ - body length is {} bytes, but read {}", + format!("body length is {} bytes, but read {}", len, total_out - total_out_before)).into()); } |