Commit 3816e7bd authored by antirez's avatar antirez
Browse files

Better DEBUG error message when num of arguments is wrong.

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