提交 4de4080e 编写于 作者: A antirez

Better DEBUG error message when num of arguments is wrong.

上级 978185bf
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册