catch and throw error from ext

Signed-off-by: zhangwenzhi <zhangwenzhi3@huawei.com>
This commit is contained in:
zhang-wenzhi821 2024-05-18 20:17:01 +08:00
parent a384411353
commit de62decfa6

View File

@ -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),