Skip to content

Commit 756e099

Browse files
committed
完善错误日志
1 parent dd621bb commit 756e099

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Quick.Protocol/QpChannel_Recv.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ private void OnCommandRequestReceived(string commandId, string typeName, string
9696
{
9797
//如果在字典中未找到此类型名称,则直接返回
9898
if (!commandRequestTypeDict.ContainsKey(typeName))
99-
throw new CommandException(255, $"Unknown RequestType: {typeName}.");
99+
throw new CommandException(255, $"Unknown RequestType[{typeName}].");
100100

101101
var cmdRequestType = commandRequestTypeDict[typeName];
102102
var cmdResponseType = commandRequestTypeResponseTypeDict[cmdRequestType];
@@ -125,7 +125,7 @@ private void OnCommandRequestReceived(string commandId, string typeName, string
125125
}
126126
}
127127
if (!hasCommandExecuter)
128-
throw new CommandException(255, $"No CommandExecuter for RequestType:{typeName}");
128+
throw new CommandException(255, $"No CommandExecuter for RequestType[{typeName}]");
129129
}
130130
catch (CommandException ex)
131131
{

0 commit comments

Comments
 (0)