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

Commit

Permalink
add user friendly report of assertion error in synctl.py
Browse files Browse the repository at this point in the history
Signed-off-by: Anant Prakash <anantprakashjsr@gmail.com>
  • Loading branch information
APwhitehat committed Mar 29, 2017
1 parent b9c2ae6 commit 305d16d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion synapse/app/synctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 305d16d

Please sign in to comment.