From 9ffeffeffd0883565f30f7724f17444bb156cc85 Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Sat, 14 Sep 2024 17:57:19 +0200 Subject: [PATCH] Display the correct value when reporting an error --- lib/src/types/byte_string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {