From 42c037c6aca8010fa4195150b6818021a9608bc5 Mon Sep 17 00:00:00 2001 From: michielmulders Date: Tue, 26 Sep 2017 16:25:07 +0200 Subject: [PATCH] Trying to match TravisCI Criteria --- src/baseRequest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/baseRequest.js b/src/baseRequest.js index 3f53370..99d7fc4 100644 --- a/src/baseRequest.js +++ b/src/baseRequest.js @@ -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 // See https://developer.mozilla.org/en-US/docs/Web/API/GlobalFetch/fetch if (!(res && res.ok)) { - let errorObject = { + const errorObject = { message: 'HTTP Error: Requested page not reachable', - status: '${res.status} ${res.statusText}', + status: (res.status) + ' ' + (res.statusText), requestURI: res.url } throw errorObject