From: Vadim Zeitlin Date: Thu, 27 Feb 2003 18:20:38 +0000 (+0000) Subject: show error message if exec() failed: not pretty but better than nothing X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d264d7091ccdc29eef962223d725742c9a8db726 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 --- diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index a9a3c1156f..fd816cb920 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -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);