Skip to content

Commit 6fb9dfa

Browse files
committed
add debug line to error handling
1 parent 6f32fa7 commit 6fb9dfa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sword2/connection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ def _handle_error_response(self, resp, content):
292292
4XX not listed:
293293
Will throw a general `sword2.exceptions.HTTPResponseError` exception
294294
"""
295+
conn_l.debug("Error body received from server: " + str(content))
296+
295297
if resp['status'] == 401:
296298
conn_l.error("You are unauthorised (401) to access this document on the server. Check your username/password credentials and your 'On Behalf Of'")
297299
return self._return_error_or_exception(NotAuthorised, resp, content)

0 commit comments

Comments
 (0)