diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index f563a1a5ea..f6e368ee32 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -1092,7 +1092,11 @@ wxCopyFile (const wxString& file1, const wxString& file2, bool overwrite) return false; } - wxDoCopyFile(fileIn, fbuf, file2, overwrite); + if ( !wxDoCopyFile(fileIn, fbuf, file2, overwrite) ) + { + wxLogError(_("Error copying the file '%s' to '%s'."), file1, file2); + return false; + } #if defined(__WXMAC__) || defined(__WXCOCOA__) // copy the resource fork of the file too if it's present