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

Commit 99a16b8

Browse files
author
Chris Wiechmann
committed
Debug error when user cannot be looked up at ANM
1 parent 2c292c3 commit 99a16b8

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ async function _getCurrentGWUser(requestHeaders, region, logger) {
493493
if(region) {
494494
throw new Error(`Error getting current user. Request sent to: '${anmConfig.url}' based on given region: '${region}'. Response-Code: ${err.statusCode}`);
495495
} else {
496-
throw new Error(`Error getting current user. Request sent to: '${anmConfig.url}'. Response-Code: ${err.statusCode}`);
496+
throw new Error(`Error getting current user. Request sent to: '${anmConfig.url}'. Response-Code: ${JSON.stringify(err)}`);
497497
}
498498
});
499499
return loginName;

0 commit comments

Comments
 (0)