Skip to content

Commit 8081c31

Browse files
committed
Add more info when MatrixHttpLibError is raised
Signed-off-by: Adam Beckmeyer <[email protected]>
1 parent 20a0031 commit 8081c31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matrix_client/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ def _send(self, method, path, content=None, query_params={}, headers={},
533533
)
534534
except requests.exceptions.RequestException as e:
535535
raise MatrixHttpLibError(
536-
"Something went wrong in sending the request", e
536+
"Something went wrong in {} requesting {}".format(method, endpoint), e
537537
)
538538

539539
if response.status_code == 429:

0 commit comments

Comments
 (0)