[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup - __init__.py:1.6

Toby Dickenson tdickenson@geminidataloggers.com
Fri, 30 May 2003 04:59:24 -0400


Update of /cvs-repository/Zope/lib/python/Zope/Startup
In directory cvs.zope.org:/tmp/cvs-serv26416

Modified Files:
	__init__.py 
Log Message:
more precise error message

=== Zope/lib/python/Zope/Startup/__init__.py 1.5 => 1.6 ===
--- Zope/lib/python/Zope/Startup/__init__.py:1.5	Fri Apr  4 00:03:48 2003
+++ Zope/lib/python/Zope/Startup/__init__.py	Fri May 30 04:59:23 2003
@@ -90,7 +90,8 @@
         'There was a problem starting a server of type "%s". '
         'This may mean that your user does not have permission to '
         'bind to the port which the server is trying to use or the '
-        'port may already be in use by another application.'
+        'port may already be in use by another application. '
+        '(%s)'
         )
     servers = []
     for server in cfg.servers:
@@ -98,9 +99,9 @@
         # set up in the config
         try:
             servers.append(server.create())
-        except socket.error:
+        except socket.error,e:
             raise ZConfig.ConfigurationError(socket_err
-                                             % server.servertype())
+                                             % (server.servertype(),e[1]))
     cfg.servers = servers
 
     # do stuff that only applies to posix platforms (setuid, daemonizing)