diff --git a/src/scripting.c b/src/scripting.c index 5a020a7337c63696a31ca11afba67df07df1f31f..140799b093cb0f756b5395e8b215397de1321c7f 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -220,7 +220,9 @@ int luaRedisGenericCommand(lua_State *lua, int raise_error) { * To make this function reentrant is futile and makes it slower, but * we should at least detect such a misuse, and abort. */ if (inuse) { - redisPanic("luaRedisGenericCommand() recursive call detected. Are you doing funny stuff with Lua debug hooks?"); + luaPushError(lua, + "luaRedisGenericCommand() recursive call detected. Are you doing funny stuff with Lua debug hooks?"); + return 1; } inuse++;