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

View file

@ -59,7 +59,7 @@ class Command(BaseCommand):
component.start()
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.addErrback(on_connect_fail)