From 35001fec763ed0a23d833172df7c4419a31124ed Mon Sep 17 00:00:00 2001 From: Jonathan Bergknoff Date: Thu, 9 May 2013 10:46:26 -0700 Subject: [PATCH] If password is supplied but redis server does not require it, continue without throwing an error --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 9d0e7dd70c..6ec5ab3b7a 100644 --- a/index.js +++ b/index.js @@ -182,6 +182,10 @@ RedisClient.prototype.do_auth = function () { self.do_auth(); }, 2000); // TODO - magic number alert return; + } else if (err.toString().match("no password is set")) { + console.log("Warning: Redis server does not require a password, but a password was supplied.") + err = null; + res = "OK"; } else { return self.emit("error", new Error("Auth error: " + err.message)); }