From 8081c319ad755f88a055def093f5b8209ddc007c Mon Sep 17 00:00:00 2001 From: Adam Beckmeyer Date: Thu, 4 May 2017 14:54:13 -0400 Subject: [PATCH] Add more info when MatrixHttpLibError is raised Signed-off-by: Adam Beckmeyer --- matrix_client/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix_client/api.py b/matrix_client/api.py index b5002969..b018d992 100644 --- a/matrix_client/api.py +++ b/matrix_client/api.py @@ -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: