diff options
| author | Carl C. Trieloff <cctrieloff@apache.org> | 2008-05-16 14:02:57 +0000 |
|---|---|---|
| committer | Carl C. Trieloff <cctrieloff@apache.org> | 2008-05-16 14:02:57 +0000 |
| commit | c98a518ab1e5428894f1e1063ad76da76c463ace (patch) | |
| tree | 062d306be5bd5c804f1ed4c081f9fdc598e287fe /qpid/python/commands/qpid-tool | |
| parent | 8c6a56372184aefefa5501687c570caa3124a97d (diff) | |
| download | qpid-python-c98a518ab1e5428894f1e1063ad76da76c463ace.tar.gz | |
QPID-1067 by tross
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@657069 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/commands/qpid-tool')
| -rwxr-xr-x | qpid/python/commands/qpid-tool | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qpid/python/commands/qpid-tool b/qpid/python/commands/qpid-tool index 9977db3518..32fdc9288b 100755 --- a/qpid/python/commands/qpid-tool +++ b/qpid/python/commands/qpid-tool @@ -24,6 +24,7 @@ import getopt import sys import socket from cmd import Cmd +from qpid.connection import ConnectionFailed from qpid.managementdata import ManagementData from shlex import split from qpid.disp import Display @@ -183,6 +184,9 @@ except Closed, e: except IOError, e: print "IOError: %d - %s: %s" % (e.errno, e.strerror, e.filename) sys.exit (1) +except ConnectionFailed, e: + print "Connect Failed %d - %s" % (e[0], e[1]) + sys.exit(1) # Instantiate the CLI interpreter and launch it. cli = Mcli (data, disp) |
