diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-05-25 19:58:18 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-05-25 19:58:18 +0200 |
commit | 712570847b88fe754c3fd4cb9e42bf3b354c3fe4 (patch) | |
tree | b72e4ded117d7a1414cbe681394432dbde67b418 | |
parent | 1138ebbee86f92ad9acf9a11d55da4120170641b (diff) |
Print sane error messages in BotFactory's failed and lost handlers.
-rwxr-xr-x | fot.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -110,11 +110,11 @@ class BotFactory(protocol.ReconnectingClientFactory): print 'Connecting to', connector.host def clientConnectionFailed(self, connector, reason): - print 'Connection failed:', reason + print 'Connection failed:', reason.getErrorMessage() protocol.ReconnectingClientFactory.clientConnectionFailed(self, connector, reason) def clientConnectionLost(self, connector, reason): - print 'Connection lost:', reason + print 'Connection lost:', reason.getErrorMessage() protocol.ReconnectingClientFactory.clientConnectionLost(self, connector, reason) def start_server(server): |