Skip to content

Commit ce4fb0d

Browse files
committed
fix(Network): 优化RPC超时错误信息,包含消息类型全名
改进超时异常的错误信息,显示消息类型的完整名称以便于调试
1 parent 213b99d commit ce4fb0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtime/Network/Network/NetworkManager.RpcState.RpcMessageData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ internal bool IncrementalElapseTime(long time)
6161
ElapseTime += time;
6262
if (ElapseTime >= Timeout)
6363
{
64-
m_Tcs.TrySetException(new TimeoutException("Rpc call timeout! Message is :" + RequestMessage));
64+
m_Tcs.TrySetException(new TimeoutException($"Rpc call timeout! Message FullName:{RequestMessage.GetType().FullName} is :{RequestMessage}"));
6565
return true;
6666
}
6767

0 commit comments

Comments
 (0)