Skip to content
Snippets Groups Projects
Commit 26e5abf2 authored by Jason Robinson's avatar Jason Robinson Committed by Richard van der Hoff
Browse files

Fix command hint to generate a config file (#4353)


* Fix command hint to generate a config file

When trying to start Synapse without a config file, it will complain
and give a hint towards what command to run. This hinted command
is missing the "report_stats" parameter, which is required with either
yes or no value. Add this to the command.

Not an ideal situation but makes the given command work without the
user getting another error, even though it might be unclear what
"report_stats" represents.

Signed-off-by: default avatarJason Robinson <jasonr@matrix.org>
parent bc1fa8cd
No related branches found
No related tags found
No related merge requests found
...@@ -65,4 +65,7 @@ Pierre Jaury <pierre at jaury.eu> ...@@ -65,4 +65,7 @@ Pierre Jaury <pierre at jaury.eu>
* Docker packaging * Docker packaging
Serban Constantin <serban.constantin at gmail dot com> Serban Constantin <serban.constantin at gmail dot com>
* Small bug fix * Small bug fix
\ No newline at end of file
Jason Robinson <jasonr at matrix.org>
* Minor fixes
Fix command hint to generate a config file when trying to start without a config file
...@@ -156,7 +156,9 @@ def main(): ...@@ -156,7 +156,9 @@ def main():
write( write(
"No config file found\n" "No config file found\n"
"To generate a config file, run '%s -c %s --generate-config" "To generate a config file, run '%s -c %s --generate-config"
" --server-name=<server name>'\n" % (" ".join(SYNAPSE), options.configfile), " --server-name=<server name> --report-stats=<yes/no>'\n" % (
" ".join(SYNAPSE), options.configfile,
),
stream=sys.stderr, stream=sys.stderr,
) )
sys.exit(1) sys.exit(1)
......
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