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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user