Skip to content
Snippets Groups Projects
Commit e87d7a4b authored by Erik Johnston's avatar Erik Johnston
Browse files

Raise ConfigError instead

parent e6a7a15f
No related branches found
No related tags found
No related merge requests found
......@@ -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"]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment