mirror of
https://github.com/tenrok/axios.git
synced 2026-05-27 14:47:43 +03:00
Removed wrong argument for NetworkError constructor; (#4656)
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user