From 06e9b3cad8683b783c1930f462313bb94b17b348 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 18 Jul 2014 10:15:51 +0200 Subject: [PATCH] PING: backward compatible error for wrong number of args. --- src/redis.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/redis.c b/src/redis.c index 84b7697a..6f902ef3 100644 --- a/src/redis.c +++ b/src/redis.c @@ -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; }