platform-mc: add more exception type
Fix PLDMD crash if endpoint device doesn't response.
Change-Id: I13c0292bdb681567593fbc4a62685e6393f88a82
Signed-off-by: Jerry C Chen <jerry.c.chen.wiwynn@gmail.com>
diff --git a/platform-mc/terminus_manager.cpp b/platform-mc/terminus_manager.cpp
index 54d749d..bb40d8d 100644
--- a/platform-mc/terminus_manager.cpp
+++ b/platform-mc/terminus_manager.cpp
@@ -376,6 +376,11 @@
"ERROR", e);
co_return PLDM_ERROR;
}
+ catch (const int& rc)
+ {
+ lg2::error("sendRecvPldmMsgOverMctp failed. rc={RC}", "RC", rc);
+ co_return PLDM_ERROR;
+ }
}
exec::task<int> TerminusManager::getTidOverMctp(mctp_eid_t eid, pldm_tid_t* tid)