Fixed Issue 74 (ERR just returned on invalid password), now the error message is -ERR invalid password.

This commit is contained in:
antirez 2009-10-29 11:43:40 +01:00
parent 4aa701c11a
commit fa4c0aba85

View File

@ -2721,7 +2721,7 @@ static void authCommand(redisClient *c) {
addReply(c,shared.ok);
} else {
c->authenticated = 0;
addReply(c,shared.err);
addReplySds(c,sdscatprintf(sdsempty(),"-ERR invalid password\r\n"));
}
}