Skip to content

Commit 21264c5

Browse files
authored
Merge pull request #58 from cisco-en-programmability/api-gw-print-response-content
dev: Api gw print response content
2 parents debed34 + 0cecec5 commit 21264c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

catalystwan/apigw_auth.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ def get_token(
8686
except JSONDecodeError:
8787
raise CatalystwanException(f"Incorrect response type from ApiGateway login request, ({response.text})")
8888
except HTTPError as ex:
89-
raise CatalystwanException(f"Problem with connection to ApiGateway login endpoint, ({ex})")
89+
raise CatalystwanException(
90+
f"Problem with connection to ApiGateway login endpoint, ({ex}). Response: ({response.text})"
91+
)
9092
except KeyError as ex:
9193
raise CatalystwanException(f"Not found token in login response from ApiGateway, ({ex})")
9294
else:

0 commit comments

Comments
 (0)