aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Packets/ByteBuffer.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-11-02 17:19:01 +0100
committerShauren <shauren.trinity@gmail.com>2025-11-02 17:19:01 +0100
commit57489f4ca9ea320678426bb70d2941c60ef9f33c (patch)
tree470f27ed72de80f9033c28851e4b43df2e3c6146 /src/server/shared/Packets/ByteBuffer.cpp
parent9d1bdda6d877c58b4fb0c0085a3cfa4bc802893e (diff)
Core/PacketIO: Reduce the number of catch blocks in WorldSession::Update
Diffstat (limited to 'src/server/shared/Packets/ByteBuffer.cpp')
-rw-r--r--src/server/shared/Packets/ByteBuffer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/shared/Packets/ByteBuffer.cpp b/src/server/shared/Packets/ByteBuffer.cpp
index f5d6a5ab4b5..5712160949f 100644
--- a/src/server/shared/Packets/ByteBuffer.cpp
+++ b/src/server/shared/Packets/ByteBuffer.cpp
@@ -65,7 +65,7 @@ std::string_view ByteBuffer::ReadCString(bool requireValidUtf8 /*= true*/)
std::string_view value(begin, stringEnd);
_rpos += value.length() + 1;
if (requireValidUtf8 && !utf8::is_valid(value.begin(), value.end()))
- throw ByteBufferInvalidValueException("string", value);
+ throw ByteBufferInvalidValueException("utf8 string", value);
return value;
}
@@ -81,7 +81,7 @@ std::string_view ByteBuffer::ReadString(uint32 length, bool requireValidUtf8 /*=
std::string_view value(reinterpret_cast<char const*>(&_storage[_rpos]), length);
_rpos += length;
if (requireValidUtf8 && !utf8::is_valid(value.begin(), value.end()))
- throw ByteBufferInvalidValueException("string", value);
+ throw ByteBufferInvalidValueException("utf8 string", value);
return value;
}