summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dbkr@matrix.org>2014-11-14 13:30:06 +0000
committerDavid Baker <dbkr@matrix.org>2014-11-14 13:30:06 +0000
commitfe3401e037aa7d87567bf520e254a3fec7d98b77 (patch)
treecc56101b423efc06f591e6132969f79818fd2f61
parentAdding --generate-config will not help if the user has not specified a config... (diff)
downloadsynapse-fe3401e037aa7d87567bf520e254a3fec7d98b77.tar.xz
Be more helpful and tell the user how to generate a config too.
Diffstat (limited to '')
-rw-r--r--synapse/config/_base.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/config/_base.py b/synapse/config/_base.py
index 322a18fbdd..6870af10e8 100644
--- a/synapse/config/_base.py
+++ b/synapse/config/_base.py
@@ -36,7 +36,10 @@ class Config(object):
         if file_path is None:
             raise ConfigError(
                 "Missing config for %s."
-                " You must specify a config file. You can do this with the -c or --config-path option."
+                " You must specify a path for the config file. You can "
+                "do this with the -c or --config-path option. "
+                "Adding --generate-config along with --server-name "
+                "<server name> will generate a config file at the given path."
                 % (config_name,)
             )
         if not os.path.exists(file_path):