diff options
Diffstat (limited to 'openpgp/src/parse.rs')
-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()); } |