summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-07-18 10:15:51 +0200
committerantirez <antirez@gmail.com>2014-07-18 10:15:51 +0200
commit6b9b958e00c8a0eff64af255f790ee5bea40f197 (patch)
tree392831e6fee5965ba39c072b467dae7533ba6ab3
parentb3c042cdb2acfd9d33c8820763f9156789dc97ee (diff)
downloadredis-6b9b958e00c8a0eff64af255f790ee5bea40f197.tar.gz
PING: backward compatible error for wrong number of args.
-rw-r--r--src/redis.c3
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;
}