mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 23:31:03 +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);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user