Updates from BitShares FC #22
2 changed files with 5 additions and 1 deletions
|
|
@ -21,8 +21,9 @@ namespace fc
|
|||
#ifdef WITH_EXOTIC_JSON_PARSERS
|
||||
strict_parser = 1,
|
||||
relaxed_parser = 2,
|
||||
legacy_parser_with_string_doubles = 3
|
||||
legacy_parser_with_string_doubles = 3,
|
||||
#endif
|
||||
broken_nul_parser = 4
|
||||
};
|
||||
enum output_formatting
|
||||
{
|
||||
|
|
|
|||
|
|
@ -441,6 +441,9 @@ namespace fc
|
|||
case EOF:
|
||||
FC_THROW_EXCEPTION( eof_exception, "unexpected end of file" );
|
||||
case 0:
|
||||
if( parser_type == fc::json::broken_nul_parser )
|
||||
return variant();
|
||||
[[fallthrough]];
|
||||
default:
|
||||
FC_THROW_EXCEPTION( parse_error_exception, "Unexpected char '${c}' in \"${s}\"",
|
||||
("c", c)("s", stringFromToken(in)) );
|
||||
|
|
|
|||
Loading…
Reference in a new issue