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

Fixed for TravisCI

This commit is contained in:
michielmulders 2017-09-26 16:29:52 +02:00
parent 42c037c6ac
commit ce9e88bac3

View File

@ -76,7 +76,7 @@ export default function baseRequest(url, { jsonBody, query, urlTemplateSpec, ...
if (!(res && res.ok)) { if (!(res && res.ok)) {
const 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