From 9c10a029f0243e86ab1e81cb1df345534b0fbc5d Mon Sep 17 00:00:00 2001 From: Corey Bonnell Date: Thu, 8 Aug 2024 14:46:01 -0400 Subject: [PATCH] Fix pluralization in error message --- CHANGELOG.md | 6 ++++++ Cargo.toml | 2 +- src/lib.rs | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aeabd9f..673f2a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## v0.1.2 - 2024-08-08 + +### Fixes + +- Fix pluralization in error message for trailing octets after TLV + ## v0.1.1 - 2024-08-07 ### Fixes diff --git a/Cargo.toml b/Cargo.toml index c271003..c647fb2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pyasn1-fasder" -version = "0.1.1" +version = "0.1.2" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/lib.rs b/src/lib.rs index 1f80a0a..116387c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -126,7 +126,7 @@ fn decode_der_rec<'py>(m: NativeHelperModule<'py>, substrate: &'py [u8], asn1_sp }; if substrate.len() != tlv_octets.len() { - return Err(Pyasn1FasderError::new_err(format!("{} trailing octets after TLV near substrate offset {}", substrate.len() - tlv_octets.len(), offset))); + return Err(Pyasn1FasderError::new_err(format!("{} trailing octet(s) after TLV near substrate offset {}", substrate.len() - tlv_octets.len(), offset))); } // initialize tag and tagSet from decoded substrate