Skip to content

Commit

Permalink
Merge pull request #1 from FezVrasta/patch-1
Browse files Browse the repository at this point in the history
feat: handle ENOTFOUND
  • Loading branch information
luispabon authored Jan 4, 2018
2 parents 075f5ce + 924bc15 commit 1fe8801
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ function shouldRetry (err, res, allowedStatuses) {
'ECONNRESET',
'ETIMEDOUT',
'EADDRINFO',
'ESOCKETTIMEDOUT'
'ESOCKETTIMEDOUT',
'ENOTFOUND'
]

if (err && err.code && ~ERROR_CODES.indexOf(err.code)) {
Expand Down

0 comments on commit 1fe8801

Please sign in to comment.