fix reporting connection errors on the console (Closes: #1228)

This commit is contained in:
Damien Churchill 2010-04-27 10:59:50 +01:00
parent 1cc315878a
commit 67e27b9b7a
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class Command(BaseCommand):
component.start() component.start()
def on_connect_fail(result): def on_connect_fail(result):
self.console.write("{!error!}Failed to connect to %s:%s with reason: %s" % (host, port, result.value.exception_msg)) self.console.write("{!error!}Failed to connect to %s:%s with reason: %s" % (host, port, result.value.args[0]))
d.addCallback(on_connect) d.addCallback(on_connect)
d.addErrback(on_connect_fail) d.addErrback(on_connect_fail)