Commit e3d4d9d4 authored by Lennart Regebro's avatar Lennart Regebro

Added an error message for misconfiguration.

parent f6ae33b4
...@@ -116,9 +116,13 @@ class ZopeStarter: ...@@ -116,9 +116,13 @@ class ZopeStarter:
from App.config import getConfiguration from App.config import getConfiguration
config = getConfiguration() config = getConfiguration()
import ZServer import ZServer
if config.twisted_servers and config.servers:
raise ZConfig.ConfigurationError(
"You can't run both ZServer servers and twisted servers.")
if config.twisted_servers: if config.twisted_servers:
if not _use_twisted: if not _use_twisted:
raise ImportError("You do not have twisted installed.") raise ZConfig.ConfigurationError(
"You do not have twisted installed.")
twisted.internet.reactor.run() twisted.internet.reactor.run()
# Storing the exit code in the ZServer even for twisted, # Storing the exit code in the ZServer even for twisted,
# but hey, it works... # but hey, it works...
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment