mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +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() {
|
request.onerror = function handleError() {
|
||||||
// Real errors are hidden from us by the browser
|
// Real errors are hidden from us by the browser
|
||||||
// onerror should only fire if it's a network error
|
// 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
|
// Clean up request
|
||||||
request = null;
|
request = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user