better error message

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2003-04-12 22:28:13 +00:00
parent 5571f3d3d7
commit d0b50ad939
2 changed files with 4 additions and 2 deletions

View File

@@ -868,7 +868,8 @@ wxBitmap wxXmlResourceHandler::GetBitmap(const wxString& param,
wxFSFile *fsfile = GetCurFileSystem().OpenFile(name);
if (fsfile == NULL)
{
wxLogError(_("XRC resource: Cannot create bitmap from '%s'."), param.c_str());
wxLogError(_("XRC resource: Cannot create bitmap from '%s'."),
name.c_str());
return wxNullBitmap;
}
wxImage img(*(fsfile->GetStream()));