mirror of
https://github.com/nlohmann/json.git
synced 2026-06-06 12:49:43 +00:00
🐛 fix BSON conformance issue
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
@@ -10614,8 +10614,8 @@ class binary_reader
|
||||
auto last_token = get_token_string();
|
||||
return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read,
|
||||
exception_message(input_format_t::bson,
|
||||
"BSON document terminator did not land at declared document size",
|
||||
"document"), nullptr));
|
||||
"BSON array terminator did not land at declared array size",
|
||||
"array"), nullptr));
|
||||
}
|
||||
|
||||
return sax->end_array();
|
||||
|
||||
Reference in New Issue
Block a user