summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xqpid/tools/src/py/qpid-tool9
1 files changed, 7 insertions, 2 deletions
diff --git a/qpid/tools/src/py/qpid-tool b/qpid/tools/src/py/qpid-tool
index 8ceaafeef8..b4c01677c3 100755
--- a/qpid/tools/src/py/qpid-tool
+++ b/qpid/tools/src/py/qpid-tool
@@ -29,8 +29,7 @@ from cmd import Cmd
from shlex import split
from threading import Lock
from time import strftime, gmtime
-from qpid.disp import Display
-from qpid.peer import Closed
+from qpidtoollibs import Display
from qmf.console import Session, Console, SchemaClass, ObjectId
class Mcli(Cmd):
@@ -594,6 +593,12 @@ class QmfData(Console):
#=====================
# Methods from Console
#=====================
+ def brokerConnectionFailed(self, broker):
+ """ Invoked when a connection to a broker fails """
+ if self.first_connect:
+ self.first_connect = None
+ print "Failed to connect: ", broker.error
+
def brokerConnected(self, broker):
""" Invoked when a connection is established to a broker """
try: