diff --git a/node_modules/whatwg-fetch/dist/fetch.umd.js b/node_modules/whatwg-fetch/dist/fetch.umd.js index 7a0d852..ca52664 100644 --- a/node_modules/whatwg-fetch/dist/fetch.umd.js +++ b/node_modules/whatwg-fetch/dist/fetch.umd.js @@ -562,9 +562,11 @@ }, 0); }; - xhr.onerror = function() { + xhr.onerror = function(event) { setTimeout(function() { - reject(new TypeError('Network request failed')); + var e = new TypeError('Network request failed') + e.detail = event.detail + reject(e) }, 0); }; diff --git a/node_modules/whatwg-fetch/fetch.js b/node_modules/whatwg-fetch/fetch.js index f39a983..3ca23c2 100644 --- a/node_modules/whatwg-fetch/fetch.js +++ b/node_modules/whatwg-fetch/fetch.js @@ -556,9 +556,11 @@ export function fetch(input, init) { }, 0) } - xhr.onerror = function() { + xhr.onerror = function(event) { setTimeout(function() { - reject(new TypeError('Network request failed')) + var e = new TypeError('Network request failed') + e.detail = event.detail + reject(e) }, 0) }