From de62decfa6f33542af50f862a4a6d57cf7ef4768 Mon Sep 17 00:00:00 2001 From: zhang-wenzhi821 Date: Sat, 18 May 2024 20:17:01 +0800 Subject: [PATCH] catch and throw error from ext Signed-off-by: zhangwenzhi --- services/core_service/src/stub.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/services/core_service/src/stub.rs b/services/core_service/src/stub.rs index a3fd863..fde6a6b 100644 --- a/services/core_service/src/stub.rs +++ b/services/core_service/src/stub.rs @@ -123,9 +123,7 @@ fn on_remote_request(stub: &AssetService, code: u32, data: &mut MsgParcel, reply let map = deserialize_map(data).map_err(asset_err_handle)?; - if let Err(e) = on_app_request(&ipc_code, &map) { - loge!("[ERROR][SA]Call ext failed, error is [code: {}] [msg: {}].", e.code, e.msg); - } + on_app_request(&ipc_code, &map).map_err(asset_err_handle)?; match ipc_code { IpcCode::Add => reply_handle(stub.add(&map), reply),