From fe3401e037aa7d87567bf520e254a3fec7d98b77 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 14 Nov 2014 13:30:06 +0000 Subject: Be more helpful and tell the user how to generate a config too. --- synapse/config/_base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'synapse/config') 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 " + " will generate a config file at the given path." % (config_name,) ) if not os.path.exists(file_path): -- cgit 1.4.1