better XRC errors reporting: report location of the error and use unified formatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -54,7 +54,7 @@ wxObject *wxCollapsiblePaneXmlHandler::DoCreateResource()
|
||||
}
|
||||
else
|
||||
{
|
||||
wxLogError(wxT("Error in resource: no control within collapsible pane's <panewindow> tag."));
|
||||
ReportError("no control within panewindow");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
@@ -65,7 +65,7 @@ wxObject *wxCollapsiblePaneXmlHandler::DoCreateResource()
|
||||
wxString label = GetParamValue(wxT("label"));
|
||||
if (label.empty())
|
||||
{
|
||||
wxLogError(wxT("Error in resource: empty label for wxCollapsiblePane"));
|
||||
ReportParamError("label", "label cannot be empty");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user