From 67ff26870029ed47b376319cceb7170f49808c4d Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Wed, 24 Dec 2025 19:42:15 +0100 Subject: [PATCH] ok --- src/lua_rds.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lua_rds.c b/src/lua_rds.c index 344550e..8d98518 100644 --- a/src/lua_rds.c +++ b/src/lua_rds.c @@ -595,15 +595,15 @@ void lua_group(RDSGroup* group) { if (lua_pcall(L, 3, 3, 0) == LUA_OK) { if (!lua_isinteger(localL, -1)) { pthread_mutex_unlock(&lua_mutex); - return luaL_error(localL, "integer expected, got %s", luaL_typename(localL, -1)); + return; } if (!lua_isinteger(localL, -2)) { pthread_mutex_unlock(&lua_mutex); - return luaL_error(localL, "integer expected, got %s", luaL_typename(localL, -2)); + return; } if (!lua_isinteger(localL, -3)) { pthread_mutex_unlock(&lua_mutex); - return luaL_error(localL, "integer expected, got %s", luaL_typename(localL, -3)); + return; } group->d = luaL_checkinteger(L, -1); group->c = luaL_checkinteger(L, -2); @@ -630,15 +630,15 @@ void lua_group_ref(RDSGroup* group, int ref) { if (lua_pcall(L, 3, 3, 0) == LUA_OK) { if (!lua_isinteger(localL, -1)) { pthread_mutex_unlock(&lua_mutex); - return luaL_error(localL, "integer expected, got %s", luaL_typename(localL, -1)); + return; } if (!lua_isinteger(localL, -2)) { pthread_mutex_unlock(&lua_mutex); - return luaL_error(localL, "integer expected, got %s", luaL_typename(localL, -2)); + return; } if (!lua_isinteger(localL, -3)) { pthread_mutex_unlock(&lua_mutex); - return luaL_error(localL, "integer expected, got %s", luaL_typename(localL, -3)); + return; } group->d = luaL_checkinteger(L, -1); group->c = luaL_checkinteger(L, -2);