summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorVincent Torri <vincent dot torri at gmail dot com>2015-09-27 10:18:54 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-10-12 17:21:59 -0700
commit8c8bfda9788ef24cbdc237bcfbd6cbb075d6e4d6 (patch)
tree07fb8d43022639f7ad1fca7e3791dbc73d4a9973 /src/lib
parentdd45d7f7445b4ea0238a9ec229011016a8586706 (diff)
ecore_exe: better error message when child process can not be run
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ecore/ecore_exe_win32.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/ecore/ecore_exe_win32.c b/src/lib/ecore/ecore_exe_win32.c
index eba7913fa2..627adeb668 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)
497 if (!CreateProcess(shell, exe->cmd, NULL, NULL, EINA_TRUE, 497 if (!CreateProcess(shell, exe->cmd, NULL, NULL, EINA_TRUE,
498 run_pri | CREATE_SUSPENDED, NULL, NULL, &si, &pi)) 498 run_pri | CREATE_SUSPENDED, NULL, NULL, &si, &pi))
499 { 499 {
500 WRN("Failed to create process %s", exe->cmd); 500 char *msg;
501
502 msg = evil_last_error_get();
503 if (msg)
504 {
505 WRN("Failed to create process %s: %s", exe->cmd, msg);
506 free(msg);
507 }
508 else
509 WRN("Failed to create process %s: %ld", exe->cmd, GetLastError());
501 goto error; 510 goto error;
502 } 511 }
503 512