Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix command hint to generate a config file (#4353)
Browse files Browse the repository at this point in the history
* 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: Jason Robinson <jasonr@matrix.org>
  • Loading branch information
jaywink authored and richvdh committed Jan 7, 2019
1 parent bc1fa8c commit 26e5abf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion AUTHORS.rst
Expand Up @@ -65,4 +65,7 @@ Pierre Jaury <pierre at jaury.eu>
* Docker packaging

Serban Constantin <serban.constantin at gmail dot com>
* Small bug fix
* Small bug fix

Jason Robinson <jasonr at matrix.org>
* Minor fixes
1 change: 1 addition & 0 deletions changelog.d/4353.misc
@@ -0,0 +1 @@
Fix command hint to generate a config file when trying to start without a config file
4 changes: 3 additions & 1 deletion synctl
Expand Up @@ -156,7 +156,9 @@ def main():
write(
"No config file found\n"
"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,
)
sys.exit(1)
Expand Down

0 comments on commit 26e5abf

Please sign in to comment.