summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorTravis Ralston <travpc@gmail.com>2018-10-23 10:25:31 -0600
committerGitHub <noreply@github.com>2018-10-23 10:25:31 -0600
commit3e704822be40a7d1d3fa82bf554f6a85823b5686 (patch)
tree856be84002e0ac5b52b27c0d3af116b965878f2f /synapse/handlers
parentisort (diff)
downloadsynapse-3e704822be40a7d1d3fa82bf554f6a85823b5686.tar.xz
Comments help
Diffstat (limited to '')
-rw-r--r--synapse/handlers/groups_local.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/handlers/groups_local.py b/synapse/handlers/groups_local.py
index cb7e7d49cb..173315af6c 100644
--- a/synapse/handlers/groups_local.py
+++ b/synapse/handlers/groups_local.py
@@ -41,6 +41,11 @@ def _create_rerouter(func_name):
                 destination, group_id, *args, **kwargs
             )
 
+            # Capture errors returned by the remote homeserver and
+            # re-throw specific errors as SynapseErrors. This is so
+            # when the remote end responds with things like 403 Not
+            # In Group, we can communicate that to the client instead
+            # of a 500.
             def h(failure):
                 failure.trap(HttpResponseException)
                 e = failure.value