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:
@@ -79,7 +79,17 @@ wxObject *wxStatusBarXmlHandler::DoCreateResource()
|
||||
else if (first == wxT("wxSB_RAISED"))
|
||||
style[i] = wxSB_RAISED;
|
||||
else if (!first.empty())
|
||||
wxLogError(wxT("Error in resource, unknown statusbar field style: ") + first);
|
||||
{
|
||||
ReportParamError
|
||||
(
|
||||
"styles",
|
||||
wxString::Format
|
||||
(
|
||||
"unknown status bar field style \"%s\"",
|
||||
first
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
if(styles.Find(wxT(',')))
|
||||
styles.Remove(0, styles.Find(wxT(',')) + 1);
|
||||
|
Reference in New Issue
Block a user