Commit 29e1c431 authored by antirez's avatar antirez
Browse files

PING: backward compatible error for wrong number of args.

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