diff options
| author | guybe7 <guy.benoish@redislabs.com> | 2021-04-15 17:36:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-15 18:36:51 +0300 |
| commit | 7d749d810b327cc0ac02df8821ccf11ab54a0a9b (patch) | |
| tree | 03bb04a3998be36e2feaa421c00c41cac83e223c /src/t_zset.c | |
| parent | d63d02601f5b6ba1b149fdd686c99c20649b9916 (diff) | |
| download | redis-7d749d810b327cc0ac02df8821ccf11ab54a0a9b.tar.gz | |
Fix error reply in case zset command is not the STORE variant (#8793)
Diffstat (limited to 'src/t_zset.c')
| -rw-r--r-- | src/t_zset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/t_zset.c b/src/t_zset.c index 49fdd91fe..fb402816d 100644 --- a/src/t_zset.c +++ b/src/t_zset.c @@ -2576,8 +2576,8 @@ void zunionInterDiffGenericCommand(client *c, robj *dstkey, int numkeysIndex, in return; if (setnum < 1) { - addReplyError(c, - "at least 1 input key is needed for ZUNIONSTORE/ZINTERSTORE/ZDIFFSTORE"); + addReplyErrorFormat(c, + "at least 1 input key is needed for %s", c->cmd->name); return; } |
