Commit 60fc3f82 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Improve error log message.


git-svn-id: https://svn.erp5.org/repos/neo/trunk@1288 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 5be77f53
......@@ -70,8 +70,8 @@ class SocketConnector:
raise ConnectorInProgressException
if err == errno.ECONNREFUSED:
raise ConnectorConnectionRefusedException
raise ConnectorException, 'makeClientConnection failed: ' \
'%s:%s' % (err, errmsg)
raise ConnectorException, 'makeClientConnection to %s failed: ' \
'%s:%s' % (addr, err, errmsg)
finally:
logging.debug('%r connecting to %r', self.socket.getsockname(),
addr)
......@@ -85,8 +85,8 @@ class SocketConnector:
self.socket.listen(5)
except socket.error, (err, errmsg):
self.socket.close()
raise ConnectorException, 'makeListeningConnection failed: %s:%s' % \
(err, errmsg)
raise ConnectorException, 'makeListeningConnection on %s failed: %s:%s' % \
(addr, err, errmsg)
def getError(self):
return self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR)
......
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