Commit 47911b86 authored by antirez's avatar antirez
Browse files

Better DEBUG error message when num of arguments is wrong.

parent 7ff729e1
...@@ -336,7 +336,7 @@ void debugCommand(redisClient *c) { ...@@ -336,7 +336,7 @@ void debugCommand(redisClient *c) {
server.active_expire_enabled = atoi(c->argv[2]->ptr); server.active_expire_enabled = atoi(c->argv[2]->ptr);
addReply(c,shared.ok); addReply(c,shared.ok);
} else { } else {
addReplyErrorFormat(c, "Unknown DEBUG subcommand '%s'", addReplyErrorFormat(c, "Unknown DEBUG subcommand or wrong number of arguments for '%s'",
(char*)c->argv[1]->ptr); (char*)c->argv[1]->ptr);
} }
} }
......
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