diff options
| author | Ted Ross <tross@apache.org> | 2011-02-04 05:49:57 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2011-02-04 05:49:57 +0000 |
| commit | 8cea22dc96999d3f462a41a36b9803327fb28005 (patch) | |
| tree | 53a7a7b908dca5737c16a4db6fa1c5d643ce64f8 | |
| parent | c3e46a1299409886c24a11b72ddbbd44a1593bb3 (diff) | |
| download | qpid-python-8cea22dc96999d3f462a41a36b9803327fb28005.tar.gz | |
Improve exception reporting for queries and method calls.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1067091 13f79535-47bb-0310-9956-ffa450edef68
| -rwxr-xr-x | tools/src/py/qmf-tool | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/src/py/qmf-tool b/tools/src/py/qmf-tool index 3ea327b29a..e366d04709 100755 --- a/tools/src/py/qmf-tool +++ b/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): |
