diff --git a/lib/rexxarFetch.js b/lib/rexxarFetch.js index bf058e2..87991b0 100644 --- a/lib/rexxarFetch.js +++ b/lib/rexxarFetch.js @@ -101,6 +101,9 @@ function resolveResponse(response) { } }); } else { + if (response.status === 999) { + throw new TypeError('Network request failed'); + } return response; } } \ No newline at end of file diff --git a/package.json b/package.json index 5e92106..00ae1f0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rexxar-web", - "version": "0.2.0", + "version": "0.2.1", "description": "Rexxar Web", "main": "./lib/index.js", "scripts": {