mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
Better DEBUG error message when num of arguments is wrong.
This commit is contained in:
parent
1b13adf388
commit
3816e7bda9
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user