From fc3287c49f2bbd2ec9f213a33754242760e8f77e Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Tue, 5 Dec 2017 21:56:35 +0000 Subject: [PATCH] Fix error message. --- src/ScalarAuthClient.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ScalarAuthClient.js b/src/ScalarAuthClient.js index f50128c454..41266bdced 100644 --- a/src/ScalarAuthClient.js +++ b/src/ScalarAuthClient.js @@ -92,9 +92,8 @@ class ScalarAuthClient { } else if (response.statusCode / 100 !== 2) { defer.reject({statusCode: response.statusCode}); } else if (!body) { - defer.reject(new Error("Missing scalar_token in response")); + defer.reject(new Error("Missing page_title in response")); } else { - console.warn("page title body", body); let title = ""; if (body.page_title_cache_item && body.page_title_cache_item.cached_title) { title = body.page_title_cache_item.cached_title;