When the amd socket is not ready, the errno value is ENOENT.
After calling aul_error_convert() function, the error is changed to AUL_R_ENOAPP.
It means the application is not found error. The error should be AUL_E_ECOMM.
This patch changes the error code to -ECOMMM.
Change-Id: Ic6d66d85bb4e37e41366a40bbe2abc1980b98dee
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
ret = SendAndReceive(&client, cmd, data, datalen, opt);
} catch (const Exception& e) {
_E("Exception occurs. error(%d)", e.GetErrorCode());
- return e.GetErrorCode();
+ return -ECOMM;
}
return ret;
ret = SendAndReceive(&client, cmd, data, datalen, opt);
} catch (const Exception& e) {
_E("Exception occurs. error(%d)", e.GetErrorCode());
- return e.GetErrorCode();
+ return -ECOMM;
}
return ret;