give the file name in the error message about failed Unicode conversion
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 4 Dec 2006 16:50:51 +0000 (16:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 4 Dec 2006 16:50:51 +0000 (16:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/textfile.cpp

index f61220dc06687137e372a0fca5198e85986c31b4..1d033f87db1f4f4a99c49d203601b93f396ab50d 100644 (file)
@@ -132,7 +132,7 @@ bool wxTextFile::OnRead(const wxMBConv& conv)
 #if wxUSE_UNICODE
     if ( bufSize > 4 && str.empty() )
     {
-        wxLogError(_("Failed to convert file contents to Unicode."));
+        wxLogError(_("Failed to convert file \"%s\" to Unicode."), GetName());
         return false;
     }
 #endif // wxUSE_UNICODE