cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=8c8bfda9788ef24cbdc237bcfbd6cbb075d6e4d6

commit 8c8bfda9788ef24cbdc237bcfbd6cbb075d6e4d6
Author: Vincent Torri <vincent dot torri at gmail dot com>
Date:   Sun Sep 27 10:18:54 2015 +0200

    ecore_exe: better error message when child process can not be run
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/lib/ecore/ecore_exe_win32.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore/ecore_exe_win32.c b/src/lib/ecore/ecore_exe_win32.c
index eba7913..627adeb 100644
--- a/src/lib/ecore/ecore_exe_win32.c
+++ b/src/lib/ecore/ecore_exe_win32.c
@@ -497,7 +497,16 @@ _impl_ecore_exe_eo_base_finalize(Eo *obj, Ecore_Exe_Data 
*exe)
    if (!CreateProcess(shell, exe->cmd, NULL, NULL, EINA_TRUE,
                       run_pri | CREATE_SUSPENDED, NULL, NULL, &si, &pi))
      {
-        WRN("Failed to create process %s", exe->cmd);
+        char *msg;
+
+       msg = evil_last_error_get();
+       if (msg)
+         {
+            WRN("Failed to create process %s: %s", exe->cmd, msg);
+            free(msg);
+         }
+       else
+         WRN("Failed to create process %s: %ld", exe->cmd, GetLastError());
         goto error;
      }
 

-- 


Reply via email to