Raise ConfigError instead

This commit is contained in:
Erik Johnston 2019-01-30 12:48:09 +00:00
parent e6a7a15f93
commit e87d7a4b0f

View File

@ -95,7 +95,9 @@ class SynapseHomeServer(HomeServer):
site_tag = listener_config.get("tag", port)
if tls and config.no_tls:
return []
raise ConfigError(
"Listener on port %i has TLS enabled, but no_tls is set" % (port,),
)
resources = {}
for res in listener_config["resources"]: