Add the command name in the unknown command error message.
This commit is contained in:
parent
752da584f0
commit
2c14807b2d
4
redis.c
4
redis.c
@ -1714,7 +1714,9 @@ static int processCommand(redisClient *c) {
|
||||
}
|
||||
cmd = lookupCommand(c->argv[0]->ptr);
|
||||
if (!cmd) {
|
||||
addReplySds(c,sdsnew("-ERR unknown command\r\n"));
|
||||
addReplySds(c,
|
||||
sdscatprintf(sdsempty(), "-ERR unknown command '%s'\r\n",
|
||||
(char*)c->argv[0]->ptr));
|
||||
resetClient(c);
|
||||
return 1;
|
||||
} else if ((cmd->arity > 0 && cmd->arity != c->argc) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user