From 4677c266ee141102e384c7b98f12a68c8a0bc873 Mon Sep 17 00:00:00 2001 From: Jake Date: Fri, 10 Aug 2018 13:08:12 +0200 Subject: [PATCH] Don't crash if redis becomes unavailable during runtime #84 --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 3a5cb55..fa02ba5 100644 --- a/lib/index.js +++ b/lib/index.js @@ -89,7 +89,7 @@ class ExpressRedisCache extends EventEmitter { if (this.client.on) { this.client.on("error", error => { - this.emit("error", error); + console.error(error); }); this.client.on("connect", () => {