BSON: Improved documentation and error handling/reporting

This commit is contained in:
Julian Becker committed 2018-10-07 09:57:55 +02:00
1 parent e8730e5e82
commit 81f4b34e06
6 files changed
+421 -120

No files matched your search

@@ -868,7 +868,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 " + std::to_string(static_cast<std::uint8_t>(j.type())) + " cannot be serialized to requested format"));
break;
case value_t::discarded:
break;