summaryrefslogtreecommitdiff
path: root/qpid/tools
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2011-02-04 05:49:57 +0000
committerTed Ross <tross@apache.org>2011-02-04 05:49:57 +0000
commitcdfac7f31225df587f34b6ac618098c93883fd64 (patch)
tree5cabe2b17dfb7a9a4b84ea061fa7f69fda5a00d6 /qpid/tools
parenteaa84eeb11e11c41da59844675b13ef1a7aaf198 (diff)
downloadqpid-python-cdfac7f31225df587f34b6ac618098c93883fd64.tar.gz
Improve exception reporting for queries and method calls.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1067091 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/tools')
-rwxr-xr-xqpid/tools/src/py/qmf-tool4
1 files changed, 4 insertions, 0 deletions
diff --git a/qpid/tools/src/py/qmf-tool b/qpid/tools/src/py/qmf-tool
index 3ea327b29a..e366d04709 100755
--- a/qpid/tools/src/py/qmf-tool
+++ b/qpid/tools/src/py/qmf-tool
@@ -128,12 +128,16 @@ class Mcli(Cmd):
try:
self.dataObject.do_query(data)
except Exception, e:
+ if e.message.__class__ == qmf2.Data:
+ e = e.message.getProperties()
print "Exception in query command:", e
def do_call(self, data):
try:
self.dataObject.do_call(data)
except Exception, e:
+ if e.message.__class__ == qmf2.Data:
+ e = e.message.getProperties()
print "Exception in call command:", e
def do_clear(self, data):