Skip to content

Commit

Permalink
fix: added arbitrary Redis "Connection is closed." error
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Jan 15, 2023
1 parent fb36649 commit 689187e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ function errorHandler(
err = Boom[camelCase(toIdentifier(statuses.message[val]))]();
err.message = translate(err.message);
} else if (
err.message === 'Connection is closed.' ||
err.name === 'RedisError' ||
err.name === 'MaxRetriesPerRequestError' ||
Object.getPrototypeOf(err.constructor).name === 'RedisError'
Expand Down

0 comments on commit 689187e

Please sign in to comment.