We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83cbf12 commit e404659Copy full SHA for e404659
src/__jsonstuff_jsondecode_oct__.cc
@@ -238,7 +238,10 @@ decode_result
238
decode_json_text (const std::string &json_str) {
239
Document document;
240
document.Parse(json_str.c_str ());
241
- // TODO: Check for parsing and validation errors!
+ if (document.HasParseError ()) {
242
+ // TODO: Include details about the parsing failure. Use GetParseError().
243
+ error ("JSON parsing error (no details available; sorry)");
244
+ }
245
return decode_recursive (document);
246
}
247
0 commit comments