show error message if exec() failed: not pretty but better than nothing

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-02-27 18:20:38 +00:00
parent 3cdf176163
commit d264d7091c

View File

@@ -654,6 +654,11 @@ long wxExecute(wxChar **argv,
execvp (*mb_argv, mb_argv);
fprintf(stderr, "execvp(");
for ( char **ppc = mb_argv; *ppc; ppc++ )
fprintf(stderr, "%s%s", ppc == mb_argv ? "" : ", ", *ppc);
fprintf(stderr, ") failed with error %d!\n", errno);
// there is no return after successful exec()
_exit(-1);