1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-21 04:22:05 +03:00

BSON: test case for a more complex document

This commit is contained in:
Julian Becker
2018-09-15 13:40:20 +02:00
parent 5ce7d6bdd7
commit 120d1d77d4
3 changed files with 34 additions and 2 deletions

View File

@ -8633,7 +8633,7 @@ class binary_writer
switch (j.type())
{
default:
JSON_THROW(type_error::create(317, "JSON value cannot be serialized to requested format"));
JSON_THROW(type_error::create(317, "JSON value of type be serialized to requested format: " + std::to_string((int)j.type())));
break;
case value_t::object:
return write_bson_object_internal(name, j);