diff --git a/src/system-fetch.js b/src/system-fetch.js index 9e38bef..e20f21b 100644 --- a/src/system-fetch.js +++ b/src/system-fetch.js @@ -33,7 +33,7 @@ fulfill(xhr.responseText); } function error() { - reject(new Error(xhr.statusText + ': ' + url || 'XHR error')); + reject(new Error('XHR error: status ' + xhr.status + ' "' + xhr.statusText + '": ' + url)); } xhr.onreadystatechange = function () {