Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit fabe5f6

Browse files
author
Chris Wiechmann
committed
Log the entire response, when user cannot be looked up at ANM.
1 parent 99a16b8 commit fabe5f6

File tree

1 file changed

+2
-2
lines changed
  • apibuilder4elastic/custom_flow_nodes/api-builder-plugin-axway-api-management/src

1 file changed

+2
-2
lines changed

apibuilder4elastic/custom_flow_nodes/api-builder-plugin-axway-api-management/src/actions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,9 @@ async function _getCurrentGWUser(requestHeaders, region, logger) {
491491
})
492492
.catch(err => {
493493
if(region) {
494-
throw new Error(`Error getting current user. Request sent to: '${anmConfig.url}' based on given region: '${region}'. Response-Code: ${err.statusCode}`);
494+
throw new Error(`Error getting current user. Request sent to: '${anmConfig.url}' based on given region: '${region}'. Response: ${JSON.stringify(err)}`);
495495
} else {
496-
throw new Error(`Error getting current user. Request sent to: '${anmConfig.url}'. Response-Code: ${JSON.stringify(err)}`);
496+
throw new Error(`Error getting current user. Request sent to: '${anmConfig.url}'. Response: ${JSON.stringify(err)}`);
497497
}
498498
});
499499
return loginName;

0 commit comments

Comments
 (0)