BSON: test case for a more complex document
This commit is contained in:
parent
5ce7d6bdd7
commit
120d1d77d4
3 changed files with 34 additions and 2 deletions
|
@ -792,7 +792,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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue