ecore_exe: better error message when child process can not be run

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Vincent Torri 2015-09-27 10:18:54 +02:00 committed by Cedric BAIL
parent dd45d7f744
commit 8c8bfda978
1 changed files with 10 additions and 1 deletions

View File

@ -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;
}