You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Gordon Sim (JIRA)" <ji...@apache.org> on 2013/11/11 14:06:17 UTC

[jira] [Assigned] (QPID-5321) qpid-tool doesn't properly display exceptions which occurred when calling some methods

     [ https://issues.apache.org/jira/browse/QPID-5321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gordon Sim reassigned QPID-5321:
--------------------------------

    Assignee: Gordon Sim

> 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
>            Assignee: Gordon Sim
>            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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org