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 be07c12 commit dd3179aCopy full SHA for dd3179a
README.md
@@ -224,7 +224,7 @@ retry_strategy example
224
```js
225
var client = redis.createClient({
226
retry_strategy: function (options) {
227
- if (options.error.code === 'ECONNREFUSED') {
+ if (options.error && options.error.code === 'ECONNREFUSED') {
228
// End reconnecting on a specific error and flush all commands with a individual error
229
return new Error('The server refused the connection');
230
}
0 commit comments