From ee10b4e92143453631f57db03d46ffc1310009ff Mon Sep 17 00:00:00 2001 From: Johnbastian Date: Fri, 28 Jun 2019 17:25:17 +0100 Subject: [PATCH] misc --- lib/addMethod/addMethodREST.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/addMethod/addMethodREST.js b/lib/addMethod/addMethodREST.js index e587bfe..5807231 100644 --- a/lib/addMethod/addMethodREST.js +++ b/lib/addMethod/addMethodREST.js @@ -174,8 +174,7 @@ module.exports = function (methodName, config, afterHeadersFunction) { if (_.isError(err) && err.message === 'socket hang up') { return handleReject( { code: 'api_timeout', - response: - {}, + response: {}, message: 'API call timeout. Looks like the API you\'re calling is having a wobble. Please try again later.' }); }