diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-08-01 14:58:16 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-08-01 16:02:46 +0100 |
commit | 018d75a148ced6945aca7b095a272e0edba5aae1 (patch) | |
tree | f56e8c5fb7bea4c9e8fff60edac82ec9ae187af5 /scripts | |
parent | Be more careful which errors we send back over the C-S API (diff) | |
download | synapse-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 'scripts')
0 files changed, 0 insertions, 0 deletions