Skip to content

Commit

Permalink
Removed wrong argument for NetworkError constructor; (#4656)
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalBrainJS committed May 3, 2022
1 parent bc733fe commit 12faca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adapters/xhr.js
Expand Up @@ -116,7 +116,7 @@ module.exports = function xhrAdapter(config) {
request.onerror = function handleError() {
// Real errors are hidden from us by the browser
// onerror should only fire if it's a network error
reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request, request));
reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));

// Clean up request
request = null;
Expand Down

0 comments on commit 12faca8

Please sign in to comment.