summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/directory.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/rest/directory.py b/synapse/rest/directory.py
index d02b15395b..65aa2196c2 100644
--- a/synapse/rest/directory.py
+++ b/synapse/rest/directory.py
@@ -71,6 +71,8 @@ class ClientDirectoryServer(RestServlet):
             yield dir_handler.create_association(
                 room_alias, room_id, servers
             )
+        except SynapseError as e:
+            raise e
         except:
             logger.exception("Failed to create association")