From: antirez Date: Thu, 29 Oct 2009 10:43:40 +0000 (+0100) Subject: Fixed Issue 74 (ERR just returned on invalid password), now the error message is... X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/fa4c0aba85fca17e2526831d1afa530724479ed5 Fixed Issue 74 (ERR just returned on invalid password), now the error message is -ERR invalid password. --- diff --git a/redis.c b/redis.c index c730c04c..85df6d31 100644 --- a/redis.c +++ b/redis.c @@ -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")); } }