msetnx reply error (#9061)

This commit is contained in:
fishsalter 2021-06-14 11:35:23 +08:00 committed by GitHub
parent b8a5da80c4
commit 2727a2cec0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -549,7 +549,8 @@ void msetGenericCommand(client *c, int nx) {
int j;
if ((c->argc % 2) == 0) {
addReplyError(c,"wrong number of arguments for MSET");
addReplyErrorFormat(c,"wrong number of arguments for '%s' command",
c->cmd->name);
return;
}