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