fix reporting connection errors on the console (Closes: #1228)
This commit is contained in:
parent
1cc315878a
commit
67e27b9b7a
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue