summary refs log tree commit diff
path: root/tests/test_server.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-08-01 14:58:16 +0100
committerRichard van der Hoff <richard@matrix.org>2018-08-01 16:02:46 +0100
commit018d75a148ced6945aca7b095a272e0edba5aae1 (patch)
treef56e8c5fb7bea4c9e8fff60edac82ec9ae187af5 /tests/test_server.py
parentBe more careful which errors we send back over the C-S API (diff)
downloadsynapse-018d75a148ced6945aca7b095a272e0edba5aae1.tar.xz
Refactor code for turning HttpResponseException into SynapseError
This commit replaces SynapseError.from_http_response_exception with
HttpResponseException.to_synapse_error.

The new method actually returns a ProxiedRequestError, which allows us to pass
through additional metadata from the API call.
Diffstat (limited to 'tests/test_server.py')
0 files changed, 0 insertions, 0 deletions