From abf9980cc2b40e7697faee2dc549a6e0fec29864 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Mon, 20 Feb 2023 10:06:09 -0400 Subject: [PATCH] Fix ByteData:set* error message. --- src/modules/data/wrap_ByteData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/data/wrap_ByteData.cpp b/src/modules/data/wrap_ByteData.cpp index bc480c18a..e299cbae3 100644 --- a/src/modules/data/wrap_ByteData.cpp +++ b/src/modules/data/wrap_ByteData.cpp @@ -73,7 +73,7 @@ static int w_ByteData_setT(lua_State *L) int nargs = std::max(1, istable ? (int) luax_objlen(L, 3) : lua_gettop(L) - 2); if (offset < 0 || offset + sizeof(T) * nargs > t->getSize()) - return luaL_error(L, ""); + return luaL_error(L, "The given offset and value parameters don't fit within the Data's size."); auto data = (T *)((uint8 *) t->getData() + offset);