From 20df1424a23ed4eedb2c6bde17ee8f368b155407 Mon Sep 17 00:00:00 2001 From: qetu3790 Date: Sun, 23 Oct 2022 20:06:58 +0800 Subject: [PATCH] Fix wrong tips when the user pass wrong # of arguments to redis.set_repl(). (#11415) redis.set_repl() needs one arg, but the tips says two. --- src/script_lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script_lua.c b/src/script_lua.c index 70c7185f9..c8e6a1283 100644 --- a/src/script_lua.c +++ b/src/script_lua.c @@ -1054,7 +1054,7 @@ static int luaRedisSetReplCommand(lua_State *lua) { serverAssert(rctx); /* Only supported inside script invocation */ if (argc != 1) { - luaPushError(lua, "redis.set_repl() requires two arguments."); + luaPushError(lua, "redis.set_repl() requires one argument."); return luaError(lua); }