diff options
author | qetu3790 <qetu3790@163.com> | 2022-10-23 20:06:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-23 15:06:58 +0300 |
commit | 20df1424a23ed4eedb2c6bde17ee8f368b155407 (patch) | |
tree | 56742b236e4268d3b8b85cdfcb98cd576e84f38d /src/script_lua.c | |
parent | 9e1b879f5bcbf105d5581c77f8c368b0ef1708f6 (diff) | |
download | redis-20df1424a23ed4eedb2c6bde17ee8f368b155407.tar.gz |
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.
Diffstat (limited to 'src/script_lua.c')
-rw-r--r-- | src/script_lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |