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

Commit

Permalink
Merge pull request #2078 from APwhitehat/assertuserfriendly
Browse files Browse the repository at this point in the history
add user friendly report of assertion error in synctl.py
  • Loading branch information
erikjohnston authored Mar 31, 2017
2 parents ec039e6 + 305d16d commit 8a240e4
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 @@ -202,7 +202,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 8a240e4

Please sign in to comment.