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 d63d02601f
commit 7d749d810b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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