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
This commit is contained in:
Vadim Zeitlin
1998-09-07 08:57:14 +00:00
parent 743e0a66f6
commit 3e64d4e1e5

View 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;
}