🚨 fix warning

This commit is contained in:
Niels Lohmann
2024-04-15 21:16:40 +02:00
parent 4b7721c392
commit bb2468a52c
4 changed files with 5 additions and 5 deletions

View File

@@ -39,7 +39,7 @@ TEST_CASE("Better diagnostics")
{
json j;
j["object"]["object"] = true;
CHECK_THROWS_WITH_AS(j["object"].at("not_found"), "[json.exception.out_of_range.403] (/object) key 'not_found' not found", json::out_of_range);
CHECK_THROWS_WITH_AS(j["object"].at("not_found"), "[json.exception.out_of_range.403] (/object) key not found (key is an rvalue and cannot be shown)", json::out_of_range);
}
SECTION("array index out of range")