Skip to content

Commit db41c7a

Browse files
committed
Expand logging for error.
1 parent 0ad3a74 commit db41c7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ClientSource/Connection/BotBaseMessage.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ struct BotBaseMessage{
4040
if (type != MessageType){
4141
throw SerialProtocolException(
4242
logger, PA_CURRENT_FUNCTION,
43-
"Received incorrect response type: " + std::to_string(type)
43+
"Received Incorrect Response Type: Expected = " + std::to_string(MessageType) + ", Actual = " + std::to_string(type)
4444
);
4545
}
4646
if (body.size() != sizeof(MessageBody)){
4747
throw SerialProtocolException(
4848
logger, PA_CURRENT_FUNCTION,
49-
"Received incorrect response size: " + std::to_string(body.size())
49+
"Received Incorrect Response Size: Expected = " + std::to_string(sizeof(MessageBody)) + ", Actual = " + std::to_string(body.size())
5050
);
5151
}
5252
memcpy(&params, body.c_str(), body.size());

0 commit comments

Comments
 (0)