summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2023-04-05 17:10:31 +0200
committerJustus Winter <justus@sequoia-pgp.org>2023-04-07 13:43:36 +0200
commitd57bd33cf9bddda77dff8e6508ebb1e4902f9294 (patch)
treecbb995e71b1f42ae6198cd9660ea425f36b48ed9
parentc7a1fb743e26af9bcae56d2e5cefab268306b9c6 (diff)
openpgp: Improve error message, avoid stuttering.
-rw-r--r--openpgp/src/parse.rs3
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());
}