mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +00:00
PING: backward compatible error for wrong number of args.
This commit is contained in:
parent
b3c042cdb2
commit
6b9b958e00
@ -2403,7 +2403,8 @@ void authCommand(redisClient *c) {
|
|||||||
void pingCommand(redisClient *c) {
|
void pingCommand(redisClient *c) {
|
||||||
/* The command takes zero or one arguments. */
|
/* The command takes zero or one arguments. */
|
||||||
if (c->argc > 2) {
|
if (c->argc > 2) {
|
||||||
addReply(c,shared.syntaxerr);
|
addReplyErrorFormat(c,"wrong number of arguments for '%s' command",
|
||||||
|
c->cmd->name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user