Commit 6b9b958e authored by antirez's avatar antirez
Browse files

PING: backward compatible error for wrong number of args.

parent b3c042cd
......@@ -2403,7 +2403,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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment