We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da904e3 commit 2d549bbCopy full SHA for 2d549bb
index.js
@@ -130,7 +130,10 @@ function errorHandler(
130
// check if we threw just a status code in order to keep it simple
131
err = Boom[camelCase(toIdentifier(statuses.message[val]))]();
132
err.message = translate(err.message);
133
- } else if (err.name === 'RedisError') {
+ } else if (
134
+ err.name === 'RedisError' ||
135
+ Object.getPrototypeOf(err.constructor).name === 'RedisError'
136
+ ) {
137
// redis errors (e.g. ioredis' MaxRetriesPerRequestError)
138
err.status = 408;
139
err.message = translate(Boom.clientTimeout().output.payload);
0 commit comments