diff options
author | Anant Prakash <anantprakashjsr@gmail.com> | 2017-03-29 18:17:42 +0530 |
---|---|---|
committer | Anant Prakash <anantprakashjsr@gmail.com> | 2017-03-29 20:41:39 +0530 |
commit | 305d16d61200362f807fa5d97d415043f2a09315 (patch) | |
tree | 748dd5fe2a15b4a353d58fc1e58898fc70856680 /synapse | |
parent | Merge pull request #1849 from matrix-org/erikj/state_typo (diff) | |
download | synapse-305d16d61200362f807fa5d97d415043f2a09315.tar.xz |
add user friendly report of assertion error in synctl.py
Signed-off-by: Anant Prakash <anantprakashjsr@gmail.com>
Diffstat (limited to '')
-rwxr-xr-x | synapse/app/synctl.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/app/synctl.py b/synapse/app/synctl.py index c045588866..81510bc5c1 100755 --- a/synapse/app/synctl.py +++ b/synapse/app/synctl.py @@ -175,7 +175,8 @@ def main(): worker_app = worker_config["worker_app"] worker_pidfile = worker_config["worker_pid_file"] worker_daemonize = worker_config["worker_daemonize"] - assert worker_daemonize # TODO print something more user friendly + assert worker_daemonize, "In config %r: expected '%s' to be True" % ( + worker_configfile, "worker_daemonize") worker_cache_factor = worker_config.get("synctl_cache_factor") workers.append(Worker( worker_app, worker_configfile, worker_pidfile, worker_cache_factor, |