From c4bd365407d0357df7ed9f600378f60fb7ca359f Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Mon, 26 Sep 2022 16:54:48 +0900 Subject: [PATCH] Add error logs in foreach autofill service Change-Id: I1555db0860c98475bd1463fa17e4f1329abe4b9b Signed-off-by: Jihoon Kim --- manager/autofill_manager.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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); -- 2.7.4