diff options
author | antirez <antirez@gmail.com> | 2014-07-18 10:15:51 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-07-18 10:15:51 +0200 |
commit | 6b9b958e00c8a0eff64af255f790ee5bea40f197 (patch) | |
tree | 392831e6fee5965ba39c072b467dae7533ba6ab3 | |
parent | b3c042cdb2acfd9d33c8820763f9156789dc97ee (diff) | |
download | redis-6b9b958e00c8a0eff64af255f790ee5bea40f197.tar.gz |
PING: backward compatible error for wrong number of args.
-rw-r--r-- | src/redis.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/redis.c b/src/redis.c index 978e47317..d002c1236 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; } |