You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by cs...@apache.org on 2017/10/10 14:49:34 UTC
[incubator-openwhisk] branch master updated: Properly handle API GW
errors during GET requests (#2845)
This is an automated email from the ASF dual-hosted git repository.
csantanapr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git
The following commit(s) were added to refs/heads/master by this push:
new 32a3ef2 Properly handle API GW errors during GET requests (#2845)
32a3ef2 is described below
commit 32a3ef281b8bd34b136f55e2e89dd0a3c49849f9
Author: Mark Deuser <md...@us.ibm.com>
AuthorDate: Tue Oct 10 10:49:32 2017 -0400
Properly handle API GW errors during GET requests (#2845)
---
core/routemgmt/common/apigw-utils.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/routemgmt/common/apigw-utils.js b/core/routemgmt/common/apigw-utils.js
index a234595..c78f4c8 100644
--- a/core/routemgmt/common/apigw-utils.js
+++ b/core/routemgmt/common/apigw-utils.js
@@ -190,7 +190,7 @@ function getApis(gwInfo, spaceGuid, bpOrApiName) {
console.error('getApis: failure: response code: '+statusCode);
if (body) {
var errMsg = makeJsonString(body);
- if (body.error && body.error.error && body.error.error.message) errMsg = body.error.error.message;
+ if (body.error && body.error.message) errMsg = body.error.message;
reject('Unable to obtain API(s) from the API Gateway (status code '+statusCode+'): '+ errMsg);
} else {
reject('Unable to obtain API(s) from the API Gateway: Response failure code: '+statusCode);
--
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].