Add error logs in foreach autofill service 10/282010/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 26 Sep 2022 07:54:48 +0000 (16:54 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 27 Sep 2022 01:23:21 +0000 (10:23 +0900)
Change-Id: I1555db0860c98475bd1463fa17e4f1329abe4b9b
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
manager/autofill_manager.c

index cc46cbe..415b95c 100644 (file)
@@ -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);