summary refs log tree commit diff
path: root/synapse/app/homeserver.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-08-25 13:34:50 +0100
committerErik Johnston <erik@matrix.org>2015-08-25 13:34:50 +0100
commitd9088c923f32fe1d2b6027320bb8fd5e46e1a428 (patch)
tree946d9823714d180ab1e015d8ae8349e85a02d808 /synapse/app/homeserver.py
parentAllow specifying a directory to host a web client from (diff)
downloadsynapse-d9088c923f32fe1d2b6027320bb8fd5e46e1a428.tar.xz
Remove dependency on matrix-angular-sdk
Diffstat (limited to 'synapse/app/homeserver.py')
-rwxr-xr-xsynapse/app/homeserver.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index 2c59457cda..6255e9676e 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -99,7 +99,14 @@ class SynapseHomeServer(HomeServer):
     def build_resource_for_web_client(self):
         webclient_path = self.get_config().web_client_location
         if not webclient_path:
-            import syweb
+            try:
+                import syweb
+            except ImportError:
+                quit_with_error(
+                    "Could not find a webclient. Please either install syweb\n"
+                    "or configure the location of the source to server via\n"
+                    "the config option `web_client_location`"
+                )
             syweb_path = os.path.dirname(syweb.__file__)
             webclient_path = os.path.join(syweb_path, "webclient")
         # GZip is disabled here due to