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