mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix #1801: ConsoleUI failed connect missing error message
This commit is contained in:
parent
ca86aa5714
commit
b81159f295
1 changed files with 5 additions and 1 deletions
|
@ -59,7 +59,11 @@ 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.args[0]))
|
try:
|
||||||
|
msg = result.value.exception_msg
|
||||||
|
except:
|
||||||
|
msg = result.value.args[0]
|
||||||
|
self.console.write("{!error!}Failed to connect to %s:%s with reason: %s" % (host, port, msg))
|
||||||
|
|
||||||
d.addCallback(on_connect)
|
d.addCallback(on_connect)
|
||||||
d.addErrback(on_connect_fail)
|
d.addErrback(on_connect_fail)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue