Improved error handling.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2006-06-05 18:08:40 +00:00
parent daf22b890b
commit da51aebeec
3 changed files with 104 additions and 4 deletions

View File

@@ -3294,7 +3294,7 @@ bool wxWindowOS2::OS2OnDrawItem( int vId,
{
vError = ::WinGetLastError(vHabmain);
sError = wxPMErrorToStr(vError);
wxLogError(_T("Unable to set current color table. Error: %s\n"), sError.c_str());
wxLogError(_T("Unable to set current color table (1). Error: %s\n"), sError.c_str());
}
//
// Set the color table to RGB mode
@@ -3309,7 +3309,7 @@ bool wxWindowOS2::OS2OnDrawItem( int vId,
{
vError = ::WinGetLastError(vHabmain);
sError = wxPMErrorToStr(vError);
wxLogError(_T("Unable to set current color table. Error: %s\n"), sError.c_str());
wxLogError(_T("Unable to set current color table (2). Error: %s\n"), sError.c_str());
}
wxCHECK( pMenuItem->IsKindOf(CLASSINFO(wxMenuItem)), FALSE );