Skip to content

Commit 10db977

Browse files
committed
Add more info when MatrixHttpLibError is raised
Signed-off-by: Adam Beckmeyer <adam_git@thebeckmeyers.xyz>
1 parent 99aa557 commit 10db977

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

matrix_client/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ def _send(self, method, path, content=None, query_params={}, headers={},
595595
)
596596
except requests.exceptions.RequestException as e:
597597
raise MatrixHttpLibError(
598-
"Something went wrong in sending the request", e
598+
"Something went wrong in {} requesting {}".format(method, endpoint), e
599599
)
600600

601601
if response.status_code == 429:

0 commit comments

Comments
 (0)