summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-08-25 14:19:09 +0100
committerErik Johnston <erik@matrix.org>2015-08-25 14:19:09 +0100
commit37403ab06cd8c82c2910d44f1b78f2338c2dab9b (patch)
tree5dd6ba23736fbe250c835d84c6a2819b2ed03129 /synapse
parentRevert previous commit. Instead, always download matrix-angular-sdk as a requ... (diff)
downloadsynapse-37403ab06cd8c82c2910d44f1b78f2338c2dab9b.tar.xz
Update the log message
Diffstat (limited to 'synapse')
-rwxr-xr-xsynapse/app/homeserver.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index 6255e9676e..7f3e441723 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -103,9 +103,15 @@ class SynapseHomeServer(HomeServer):
                 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`"
+                    "Could not find a webclient.\n\n"
+                    "Please either install the matrix-angular-sdk or configure\n"
+                    "the location of the source to serve via the configuration\n"
+                    "option `web_client_location`\n\n"
+                    "To install the `matrix-angular-sdk` via pip, run:\n\n"
+                    "    pip install 'matrix-angular-sdk'\n"
+                    "\n"
+                    "You can also disable hosting of the webclient via the\n"
+                    "configuration option `web_client`\n"
                 )
             syweb_path = os.path.dirname(syweb.__file__)
             webclient_path = os.path.join(syweb_path, "webclient")
@@ -271,8 +277,7 @@ def quit_with_error(error_string):
     line_length = max([len(l) for l in message_lines]) + 2
     sys.stderr.write("*" * line_length + '\n')
     for line in message_lines:
-        if line.strip():
-            sys.stderr.write(" %s\n" % (line.strip(),))
+        sys.stderr.write(" %s\n" % (line.rstrip(),))
     sys.stderr.write("*" * line_length + '\n')
     sys.exit(1)