🔨 changed an exception

This commit is contained in:
Niels Lohmann
2017-03-08 18:07:21 +01:00
parent 8fcd01631f
commit fc9b528ec9
6 changed files with 106 additions and 77 deletions

View File

@@ -49,13 +49,13 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
// serializations must match
assert(s1 == s2);
}
catch (const std::invalid_argument&)
catch (const json::parse_error&)
{
// parsing a JSON serialization must not fail
assert(false);
}
}
catch (const std::invalid_argument&)
catch (const json::parse_error&)
{
// parse errors are ok, because input may be random bytes
}