Suppressions: Report error if bad suppression element is used
This commit is contained in:
parent
1767fe525b
commit
a2b8eb7405
|
@ -92,6 +92,8 @@ std::string Suppressions::parseXmlFile(const char *filename)
|
|||
s.lineNumber = std::atoi(text);
|
||||
else if (std::strcmp(e2->Name(), "symbolName") == 0)
|
||||
s.symbolName = text;
|
||||
else
|
||||
return std::string("Unknown suppression element '") + e2->Name() + "'";
|
||||
}
|
||||
const std::string err = addSuppression(s);
|
||||
if (!err.empty())
|
||||
|
|
Loading…
Reference in New Issue