Use addReplyErrorObject with shared.syntaxerror (#8248)

This commit is contained in:
Itamar Haber 2020-12-25 18:27:30 +02:00 committed by GitHub
parent c4b52fc7c9
commit e18068d9d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1208,7 +1208,7 @@ void copyCommand(client *c) {
selectDb(c,srcid); /* Back to the source DB */
j++; /* Consume additional arg. */
} else {
addReply(c, shared.syntaxerr);
addReplyErrorObject(c,shared.syntaxerr);
return;
}
}

View File

@ -620,7 +620,7 @@ void georadiusGeneric(client *c, int srcKeyIndex, int flags) {
bybox = 1;
i += 3;
} else {
addReply(c, shared.syntaxerr);
addReplyErrorObject(c,shared.syntaxerr);
return;
}
}