Skip to content

Commit a97af1d

Browse files
authored
Fix retry on socket error (#432)
1 parent 4f6eace commit a97af1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/request-execution.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class RequestExecution {
126126
} catch (err) {
127127
// When its a socket error, attempt to retry.
128128
// Otherwise, rethrow the error to the user.
129-
return this._handleError(err, RequestExecution._getErrorCode(err));
129+
return this._handleError(RequestExecution._getErrorCode(err), err);
130130
}
131131
}
132132

@@ -494,4 +494,4 @@ class RequestExecution {
494494
}
495495
}
496496

497-
module.exports = RequestExecution;
497+
module.exports = RequestExecution;

0 commit comments

Comments
 (0)