Skip to content
Snippets Groups Projects
Commit fe3401e0 authored by David Baker's avatar David Baker
Browse files

Be more helpful and tell the user how to generate a config too.

parent 933ce760
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,10 @@ class Config(object): ...@@ -36,7 +36,10 @@ class Config(object):
if file_path is None: if file_path is None:
raise ConfigError( raise ConfigError(
"Missing config for %s." "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,) % (config_name,)
) )
if not os.path.exists(file_path): if not os.path.exists(file_path):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment