BSON: test case for a more complex document
This commit is contained in:
1 parent
5ce7d6bdd7
commit
120d1d77d4
3 files changed
+34
-2
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user