We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f6eace commit a97af1dCopy full SHA for a97af1d
1 file changed
lib/request-execution.js
@@ -126,7 +126,7 @@ class RequestExecution {
126
} catch (err) {
127
// When its a socket error, attempt to retry.
128
// Otherwise, rethrow the error to the user.
129
- return this._handleError(err, RequestExecution._getErrorCode(err));
+ return this._handleError(RequestExecution._getErrorCode(err), err);
130
}
131
132
@@ -494,4 +494,4 @@ class RequestExecution {
494
495
496
497
-module.exports = RequestExecution;
+module.exports = RequestExecution;
0 commit comments