1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-11-22 17:50:09 +01:00

Trying to match TravisCI Criteria

This commit is contained in:
michielmulders 2017-09-26 16:25:07 +02:00
parent 823d340d61
commit 42c037c6ac

View File

@ -74,9 +74,9 @@ export default function baseRequest(url, { jsonBody, query, urlTemplateSpec, ...
// If status is not a 2xx (based on Response.ok), assume it's an error // If status is not a 2xx (based on Response.ok), assume it's an error
// See https://developer.mozilla.org/en-US/docs/Web/API/GlobalFetch/fetch // See https://developer.mozilla.org/en-US/docs/Web/API/GlobalFetch/fetch
if (!(res && res.ok)) { if (!(res && res.ok)) {
let errorObject = { const errorObject = {
message: 'HTTP Error: Requested page not reachable', message: 'HTTP Error: Requested page not reachable',
status: '${res.status} ${res.statusText}', status: (res.status) + ' ' + (res.statusText),
requestURI: res.url requestURI: res.url
} }
throw errorObject throw errorObject