Return body of response in HttpResponseException

This commit is contained in:
Erik Johnston 2015-02-06 10:55:01 +00:00
parent 3737329d9b
commit 9f2573eea1

View File

@ -169,8 +169,9 @@ class MatrixFederationHttpClient(object):
else: else:
# :'( # :'(
# Update transactions table? # Update transactions table?
body = yield readBody(response)
raise HttpResponseException( raise HttpResponseException(
response.code, response.phrase, response response.code, response.phrase, body
) )
defer.returnValue(response) defer.returnValue(response)