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"
|
#include "wx/app.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "wx/log.h"
|
||||||
#include "wx/msw/private.h"
|
#include "wx/msw/private.h"
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
@@ -144,6 +145,8 @@ long wxExecute(const wxString& command, bool sync, wxProcess *handler)
|
|||||||
|
|
||||||
if (((long)result) <= 32) {
|
if (((long)result) <= 32) {
|
||||||
free(cl);
|
free(cl);
|
||||||
|
|
||||||
|
wxLogSysError(_("Can't execute command '%s'"), command.c_str());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user