Skip to content

Commit d9c7ced

Browse files
committed
api: Print out entire response on error
Rather than printing out what appears to be a non-existent 'detail' key, simply print the entire response back to the user. Signed-off-by: Stephen Finucane <[email protected]> Fixes: #9
1 parent 6072518 commit d9c7ced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git_pw/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _get_project(): # type: () -> str
7878
def _handle_error(operation, exc):
7979
if exc.response is not None and exc.response.content:
8080
# we make the assumption that all responses will be JSON encoded
81-
LOG.error(exc.response.json()['detail'])
81+
LOG.error(exc.response.json())
8282
else:
8383
LOG.error('Failed to %s resource. Is your configuration '
8484
'correct?' % operation)

0 commit comments

Comments
 (0)