Skip to content

Commit

Permalink
Don't crash if redis becomes unavailable during runtime rv-kip#84
Browse files Browse the repository at this point in the history
  • Loading branch information
krazyjakee authored and rawpixel-vincent committed Jul 17, 2021
1 parent a7c0370 commit 4677c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down

0 comments on commit 4677c26

Please sign in to comment.