]> git.saurik.com Git - wxWidgets.git/commitdiff
added wxLogSysError() in wxExecute() if the command fails
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 7 Sep 1998 08:57:14 +0000 (08:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 7 Sep 1998 08:57:14 +0000 (08:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/utilsexc.cpp

index 6ff8518ec4dc0891f8b464c81b84d8a3694f0333..cfd23a7f25af9625ca0dcd97c48cbb856d32ec29 100644 (file)
@@ -26,6 +26,7 @@
 #include "wx/app.h"
 #endif
 
+#include "wx/log.h"
 #include "wx/msw/private.h"
 #include <windows.h>
 
@@ -144,6 +145,8 @@ long wxExecute(const wxString& command, bool sync, wxProcess *handler)
 
   if (((long)result) <= 32) {
    free(cl);
+
+   wxLogSysError(_("Can't execute command '%s'"), command.c_str());
    return 0;
   }