Improve error messages.
GitOrigin-RevId: 99d0bdaec60007ace41631804e36c17b0753ede2
This commit is contained in:
parent
f45d80fe16
commit
fae344a65d
@ -64,7 +64,7 @@ class UdpSocketReceiveHelper {
|
||||
message.error = Status::OK();
|
||||
|
||||
if ((message_header.dwFlags & (MSG_TRUNC | MSG_CTRUNC)) != 0) {
|
||||
message.error = Status::Error(501, "message too long");
|
||||
message.error = Status::Error(501, "Message too long");
|
||||
message.data = BufferSlice();
|
||||
return;
|
||||
}
|
||||
@ -426,7 +426,7 @@ class UdpSocketReceiveHelper {
|
||||
}
|
||||
if (message_header.msg_flags & MSG_TRUNC) {
|
||||
if (message.error) {
|
||||
*message.error = Status::Error(501, "message too long");
|
||||
*message.error = Status::Error(501, "Message too long");
|
||||
}
|
||||
message.data.truncate(0);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user