diff --git a/lib/src/types/byte_string.rs b/lib/src/types/byte_string.rs index 629a0432f..2d0cca427 100644 --- a/lib/src/types/byte_string.rs +++ b/lib/src/types/byte_string.rs @@ -125,7 +125,7 @@ impl BinaryEncoder for ByteString { } else if len as usize > decoding_options.max_byte_string_length { error!( "ByteString length {} exceeds decoding limit {}", - len, decoding_options.max_string_length + len, decoding_options.max_byte_string_length ); Err(StatusCode::BadDecodingError) } else {