🔨 added error messages to SAX interface
This commit is contained in:
parent
86991d5204
commit
9d27429527
5 changed files with 57 additions and 29 deletions
|
@ -123,7 +123,7 @@ class SaxEventLogger : public nlohmann::json::json_sax_t
|
|||
return true;
|
||||
}
|
||||
|
||||
bool parse_error(std::size_t position, const std::string&) override
|
||||
bool parse_error(std::size_t position, const std::string&, const std::string&) override
|
||||
{
|
||||
errored = true;
|
||||
events.push_back("parse_error(" + std::to_string(position) + ")");
|
||||
|
@ -208,7 +208,7 @@ class SaxDomParser : public nlohmann::json::json_sax_t
|
|||
return true;
|
||||
}
|
||||
|
||||
bool parse_error(std::size_t position, const std::string&) override
|
||||
bool parse_error(std::size_t position, const std::string&, const std::string&) override
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -122,7 +122,7 @@ struct SaxEventLogger : public nlohmann::json::json_sax_t
|
|||
return true;
|
||||
}
|
||||
|
||||
bool parse_error(std::size_t position, const std::string&) override
|
||||
bool parse_error(std::size_t position, const std::string&, const std::string&) override
|
||||
{
|
||||
events.push_back("parse_error(" + std::to_string(position) + ")");
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue