This commit is contained in:
dmchen 2024-07-22 07:53:13 +00:00
parent 51fdb6a8f2
commit c4d04b21e9
1 changed files with 4 additions and 1 deletions

View File

@ -892,7 +892,10 @@ int32_t mndProcessRpcMsg(SRpcMsg *pMsg, SQueueInfo *pQueueInfo) {
} else if (code == 0) {
mGTrace("msg:%p, successfully processed", pMsg);
} else {
if (terrno != 0) code = terrno;
//TODO removve this wrong set code
if (code == -1) {
code = terrno;
}
mGError("msg:%p, failed to process since %s, app:%p type:%s", pMsg, tstrerror(code), pMsg->info.ahandle,
TMSG_INFO(pMsg->msgType));
}