JAkub Scholz created QPID-5321:
----------------------------------
Summary: qpid-tool doesn't properly display exceptions which
occurred when calling some methods
Key: QPID-5321
URL: https://issues.apache.org/jira/browse/QPID-5321
Project: Qpid
Issue Type: Bug
Components: C++ Broker
Affects Versions: 0.25
Reporter: JAkub Scholz
Priority: Minor
When an exception occurs during a call of some method from qpid-tool, the
actual exception is not displayed:
qpid: call 152 purge 0
{"filter_type":"header_match_str","filter_params":{"header_key":"status","header_value":"suda"}}
*Exception in do_call: %r*
intstead of:
qpid: call 152 purge 0
{"filter_type":"header_match_str","filter_params":{"header_key":"status","header_value":"licha"}}
*Exception in do_call: Timeout()*
This is because when the exception is catched in the do_call method, it doesn't
format the printed statement properly, because a "," is used as a separator
instead of "%".
I would attach a patch, but since it is just one character change, it does't
seem necessary:
Index: src/py/qpid-tool
===================================================================
--- src/py/qpid-tool (revision 1540216)
+++ src/py/qpid-tool (working copy)
@@ -144,7 +144,7 @@
try:
self.dataObject.do_call(data)
except Exception, e:
- print "Exception in do_call: %r", e
+ print "Exception in do_call: %r" % e
def do_EOF(self, data):
print "quit"
--
This message was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]