Skip to content

Commit

Permalink
Add more info when MatrixHttpLibError is raised
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Beckmeyer <[email protected]>
  • Loading branch information
non-Jedi committed May 4, 2017
1 parent 20a0031 commit 8081c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matrix_client/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def _send(self, method, path, content=None, query_params={}, headers={},
)
except requests.exceptions.RequestException as e:
raise MatrixHttpLibError(
"Something went wrong in sending the request", e
"Something went wrong in {} requesting {}".format(method, endpoint), e
)

if response.status_code == 429:
Expand Down

0 comments on commit 8081c31

Please sign in to comment.