diff options
author | Erik Johnston <erik@matrix.org> | 2015-02-06 10:55:01 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-02-06 10:55:01 +0000 |
commit | 9f2573eea1641806c67d51b98013a17a686c0909 (patch) | |
tree | d6f1f4d61d092c72de3a8ceabe1ee5ffaf98b4d0 | |
parent | Handle the fact the list.remove raises if element doesn't exist (diff) | |
download | synapse-9f2573eea1641806c67d51b98013a17a686c0909.tar.xz |
Return body of response in HttpResponseException
-rw-r--r-- | synapse/http/matrixfederationclient.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/http/matrixfederationclient.py b/synapse/http/matrixfederationclient.py index 8559d06b7f..056d446e42 100644 --- a/synapse/http/matrixfederationclient.py +++ b/synapse/http/matrixfederationclient.py @@ -169,8 +169,9 @@ class MatrixFederationHttpClient(object): else: # :'( # Update transactions table? + body = yield readBody(response) raise HttpResponseException( - response.code, response.phrase, response + response.code, response.phrase, body ) defer.returnValue(response) |