diff --git a/conandata.yml b/conandata.yml index 6feb46e5..4cf74beb 100644 --- a/conandata.yml +++ b/conandata.yml @@ -1 +1 @@ -version: "5.4.0-alpha.0" \ No newline at end of file +version: "5.4.1" diff --git a/include/Arcus/Error.h b/include/Arcus/Error.h index f3efa57a..0260887d 100644 --- a/include/Arcus/Error.h +++ b/include/Arcus/Error.h @@ -19,6 +19,7 @@ enum class ErrorCode BindFailedError, ///< Bind to IP and port failed. AcceptFailedError, ///< Accepting an incoming connection failed. SendFailedError, ///< Sending a message failed. + MessageTooBigError, ///< Sending a message failed because it was too big. ReceiveFailedError, ///< Receiving a message failed. UnknownMessageTypeError, ///< Received a message with an unknown message type. ParseFailedError, ///< Parsing the received message failed. diff --git a/src/Socket_p.h b/src/Socket_p.h index 28e6a2fe..60a46b97 100644 --- a/src/Socket_p.h +++ b/src/Socket_p.h @@ -341,7 +341,7 @@ void Socket::Private::sendMessage(const MessagePtr& message) const uint32_t message_size = message->ByteSizeLong(); if (message_size > message_size_maximum) { - error(ErrorCode::SendFailedError, "Message is too big to be sent"); + error(ErrorCode::MessageTooBigError, "Message is too big to be sent"); return; }