Skip to content

Commit

Permalink
[app] push source position error when expat fails to parse a file due…
Browse files Browse the repository at this point in the history
… to a XML syntax error
  • Loading branch information
vovkos committed Jun 4, 2024
1 parent a94b8d5 commit 7e42f92
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/DoxyXmlParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ DoxyXmlParser::parseFile(
m_filePath = io::getFullFilePath(fileName);
m_baseDir = io::getDir(m_filePath);

return xml::ExpatParser<DoxyXmlParser>::parseFile(fileName);
bool result = xml::ExpatParser<DoxyXmlParser>::parseFile(fileName);
if (!result)
err::pushFormatStringError("%s(%d)", m_filePath.sz(), getLineNumber());

return result;
}

void
Expand Down

0 comments on commit 7e42f92

Please sign in to comment.