From: Vadim Zeitlin Date: Mon, 7 Sep 1998 08:57:14 +0000 (+0000) Subject: added wxLogSysError() in wxExecute() if the command fails X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3e64d4e1e572835accdca5cc58cbcaf8d3aa8359 added wxLogSysError() in wxExecute() if the command fails git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/utilsexc.cpp b/src/msw/utilsexc.cpp index 6ff8518ec4..cfd23a7f25 100644 --- a/src/msw/utilsexc.cpp +++ b/src/msw/utilsexc.cpp @@ -26,6 +26,7 @@ #include "wx/app.h" #endif +#include "wx/log.h" #include "wx/msw/private.h" #include @@ -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; }