summary refs log tree commit diff
path: root/synapse/http/matrixfederationclient.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-02-06 10:55:01 +0000
committerErik Johnston <erik@matrix.org>2015-02-06 10:55:01 +0000
commit9f2573eea1641806c67d51b98013a17a686c0909 (patch)
treed6f1f4d61d092c72de3a8ceabe1ee5ffaf98b4d0 /synapse/http/matrixfederationclient.py
parentHandle the fact the list.remove raises if element doesn't exist (diff)
downloadsynapse-9f2573eea1641806c67d51b98013a17a686c0909.tar.xz
Return body of response in HttpResponseException
Diffstat (limited to '')
-rw-r--r--synapse/http/matrixfederationclient.py3
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)