]> git.saurik.com Git - wxWidgets.git/commitdiff
show error message if exec() failed: not pretty but better than nothing
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 27 Feb 2003 18:20:38 +0000 (18:20 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 27 Feb 2003 18:20:38 +0000 (18:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/utilsunx.cpp

index a9a3c1156f824177a24d5af69f2c1e918f60d0d3..fd816cb92010d867587cd19032d66c9dd353c1c3 100644 (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);