We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ee6aba4 + dd3179a commit 4b27f79Copy full SHA for 4b27f79
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