Fix error reply in case zset command is not the STORE variant (#8793)
This commit is contained in:
parent
0bf6c205db
commit
47c54769ce
@ -2576,8 +2576,8 @@ void zunionInterDiffGenericCommand(client *c, robj *dstkey, int numkeysIndex, in
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (setnum < 1) {
|
if (setnum < 1) {
|
||||||
addReplyError(c,
|
addReplyErrorFormat(c,
|
||||||
"at least 1 input key is needed for ZUNIONSTORE/ZINTERSTORE/ZDIFFSTORE");
|
"at least 1 input key is needed for %s", c->cmd->name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user