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 <adam_git@thebeckmeyers.xyz>
  • Loading branch information
non-Jedi committed Oct 24, 2017
1 parent 99aa557 commit 10db977
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 @@ -595,7 +595,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 10db977

Please sign in to comment.