better error message when an inconsistency has been found
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
001f1f5678
commit
ed923a37e5
@ -1529,11 +1529,10 @@ bool wxXmlDoxygenInterface::ParseCompoundDefinition(const wxString& filename)
|
|||||||
membernode->GetAttribute("kind") == "function" &&
|
membernode->GetAttribute("kind") == "function" &&
|
||||||
(accessSpec == "public" || accessSpec == "protected"))
|
(accessSpec == "public" || accessSpec == "protected"))
|
||||||
{
|
{
|
||||||
|
|
||||||
wxMethod m;
|
wxMethod m;
|
||||||
if (!ParseMethod(membernode, m, header)) {
|
if (!ParseMethod(membernode, m, header)) {
|
||||||
wxLogError("The method '%s' could not be added to class '%s'",
|
wxLogError("The method '%s' could not be added to class '%s'",
|
||||||
m.GetName(), klass.GetName());
|
m.GetName(), klass.GetName());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1548,9 +1547,11 @@ bool wxXmlDoxygenInterface::ParseCompoundDefinition(const wxString& filename)
|
|||||||
absoluteFile = header;
|
absoluteFile = header;
|
||||||
else if (header != absoluteFile)
|
else if (header != absoluteFile)
|
||||||
{
|
{
|
||||||
wxLogError("The method '%s' is documented in a different "
|
wxLogError("Found inconsistency in the XML file '%s': "
|
||||||
"file from others (which belong to '%s') ?",
|
"the method '%s' is documented in the "
|
||||||
header, absoluteFile);
|
"file '%s' but the other methods of the same "
|
||||||
|
"class are documented in the file '%s'",
|
||||||
|
filename, m.GetName(), header, absoluteFile);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user