summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-05-25 19:58:18 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-05-25 19:58:18 +0200
commit712570847b88fe754c3fd4cb9e42bf3b354c3fe4 (patch)
treeb72e4ded117d7a1414cbe681394432dbde67b418
parent1138ebbee86f92ad9acf9a11d55da4120170641b (diff)
Print sane error messages in BotFactory's failed and lost handlers.
-rwxr-xr-xfot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fot.py b/fot.py
index 2fedee6..6ed05c0 100755
--- a/fot.py
+++ b/fot.py
@@ -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):