Fix error reply in case zset command is not the STORE variant (#8793)

This commit is contained in:
guybe7 2021-04-15 17:36:51 +02:00 committed by GitHub
parent 0bf6c205db
commit 47c54769ce

View File

@ -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;
} }