working commit
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ std::expected<void, std::string> MessageHeader::Decode(const std::string rawHead
|
||||
std::memcpy(&tmp, rawHeader.data(), sizeof(uint32_t));
|
||||
auto magic = ntohl(tmp);
|
||||
if (magic != msgMagic) {
|
||||
return std::unexpected("Wrong magic code");
|
||||
return std::unexpected(std::format("Wrong magic code {:x}", magic));
|
||||
}
|
||||
std::memcpy(&tmp, rawHeader.data() + sizeof(uint32_t), sizeof(uint32_t));
|
||||
pSize = ntohl(tmp);
|
||||
|
||||
Reference in New Issue
Block a user