forked from enlightenment/enlightenment
print more descriptive error messages when scanner connection fails, also don't exit() here
ref T1612
This commit is contained in:
parent
13c6e93b9c
commit
671a0d3b99
|
@ -617,8 +617,14 @@ _scanner_del(void *data, int type __UNUSED__, Ecore_Exe_Event_Del *ev)
|
||||||
if (data != ecore_exe_data_get(ev->exe)) return ECORE_CALLBACK_PASS_ON;
|
if (data != ecore_exe_data_get(ev->exe)) return ECORE_CALLBACK_PASS_ON;
|
||||||
if (!svr)
|
if (!svr)
|
||||||
{
|
{
|
||||||
INF("scanner connection dead, exiting");
|
const char *str = "blame cedric";
|
||||||
exit(1);
|
|
||||||
|
if (ev->exit_code == 1)
|
||||||
|
str = "unable to allocate memory";
|
||||||
|
else if (ev->exit_code == 2)
|
||||||
|
str = "unable to create local socket; check \"/$TMPDIR/.ecore_service/\" for stale files";
|
||||||
|
INF("scanner connection dead (%s), exiting", str);
|
||||||
|
_e_fm_main_catch(EFM_MODE_USING_RASTER_MOUNT);
|
||||||
}
|
}
|
||||||
INF("lost connection to scanner");
|
INF("lost connection to scanner");
|
||||||
scanner = NULL;
|
scanner = NULL;
|
||||||
|
|
Loading…
Reference in New Issue