2
0
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:
Dmitriy Mozgovoy
2022-05-03 19:30:17 +03:00
committed by GitHub
parent bc733fec78
commit 12faca87e0
+1 -1
View File
@@ -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;