summary refs log tree commit diff
path: root/synctl
diff options
context:
space:
mode:
authorJason Robinson <mail@jasonrobinson.me>2019-01-07 18:28:40 +0200
committerRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2019-01-07 16:28:40 +0000
commit26e5abf20d9fa15b34a122d0ab5ab6e359852e4c (patch)
tree66ad656465f75b674c248fa30321840508cc13ff /synctl
parentAdd GET account data routes (#4303) (diff)
downloadsynapse-26e5abf20d9fa15b34a122d0ab5ab6e359852e4c.tar.xz
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: Jason Robinson <jasonr@matrix.org>


Diffstat (limited to '')
-rwxr-xr-xsynctl4
1 files changed, 3 insertions, 1 deletions
diff --git a/synctl b/synctl
index 7e79b05c39..816c898b36 100755
--- a/synctl
+++ b/synctl
@@ -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)