From 6b9b958e00c8a0eff64af255f790ee5bea40f197 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 978e4731..d002c123 100644 --- a/src/redis.c +++ b/src/redis.c @@ -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; }