refactor: Improve exception handling (#6540) (#6735)

Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com>
This commit is contained in:
Bart
2026-04-14 13:14:24 -04:00
committed by GitHub
parent 61fbde3a71
commit 2f029a2120
14 changed files with 96 additions and 114 deletions

View File

@@ -2130,7 +2130,7 @@ class STParsedJSON_test : public beast::unit_test::suite
STParsedJSONObject const parsed("test", faultyJson);
BEAST_EXPECT(!parsed.object);
}
catch (std::runtime_error& e)
catch (std::runtime_error const& e)
{
std::string const what(e.what());
unexpected(what.find("First level children of `Template`") != 0);