From 57489f4ca9ea320678426bb70d2941c60ef9f33c Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 2 Nov 2025 17:19:01 +0100 Subject: Core/PacketIO: Reduce the number of catch blocks in WorldSession::Update --- src/server/shared/Packets/ByteBuffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/shared/Packets/ByteBuffer.cpp') 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(&_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; } -- cgit v1.2.3