From: Jihoon Kim Date: Mon, 26 Sep 2022 07:54:48 +0000 (+0900) Subject: Add error logs in foreach autofill service X-Git-Tag: accepted/tizen/7.0/unified/20221109.171227~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F10%2F282010%2F2;p=platform%2Fcore%2Fuifw%2Fautofill.git Add error logs in foreach autofill service Change-Id: I1555db0860c98475bd1463fa17e4f1329abe4b9b Signed-off-by: Jihoon Kim --- diff --git a/manager/autofill_manager.c b/manager/autofill_manager.c index cc46cbe..415b95c 100644 --- a/manager/autofill_manager.c +++ b/manager/autofill_manager.c @@ -276,14 +276,23 @@ EXPORT_API int autofill_manager_foreach_autofill_service(autofill_manager_h amh, } rpc_port_proxy_list_string_h app_id_list; - rpc_port_proxy_list_string_create(&app_id_list); + ret = rpc_port_proxy_list_string_create(&app_id_list); + if (ret != RPC_PORT_ERROR_NONE) { + LOGW("[ERROR] Failed to create string list. err = %d", ret); + return AUTOFILL_ERROR_OPERATION_FAILED; + } + ret = rpc_port_proxy_AutofillManagerPort_invoke_get_autofill_service_list(amh->rpc_h, &app_id_list); if (ret == false) { LOGW("[ERROR] Failed to send rpc port. err = %d", ret); rpc_port_proxy_list_string_destroy(app_id_list); return AUTOFILL_ERROR_OPERATION_FAILED; } - rpc_port_proxy_list_string_foreach(app_id_list, callback, user_data); + ret = rpc_port_proxy_list_string_foreach(app_id_list, callback, user_data); + if (ret != RPC_PORT_ERROR_NONE) { + LOGW("[ERROR] Failed to get list. err = %d", ret); + return AUTOFILL_ERROR_OPERATION_FAILED; + } rpc_port_proxy_list_string_destroy(app_id_list);