PING: backward compatible error for wrong number of args.

This commit is contained in:
antirez 2014-07-18 10:15:51 +02:00
parent ab5f20d19c
commit 06e9b3cad8

View File

@ -2267,7 +2267,8 @@ void authCommand(redisClient *c) {
void pingCommand(redisClient *c) {
/* The command takes zero or one arguments. */
if (c->argc > 2) {
addReply(c,shared.syntaxerr);
addReplyErrorFormat(c,"wrong number of arguments for '%s' command",
c->cmd->name);
return;
}