NO-JIRA: if get error with no description, use the name for clarity
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/1d575114 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/1d575114 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/1d575114 Branch: refs/heads/master Commit: 1d575114bb9a9cb572ec25d39ece170b0eaeae8a Parents: 7beab44 Author: Gordon Sim <g...@redhat.com> Authored: Tue May 17 18:44:03 2016 +0100 Committer: Gordon Sim <g...@redhat.com> Committed: Tue May 17 18:44:54 2016 +0100 ---------------------------------------------------------------------- proton-c/bindings/python/proton/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/1d575114/proton-c/bindings/python/proton/handlers.py ---------------------------------------------------------------------- diff --git a/proton-c/bindings/python/proton/handlers.py b/proton-c/bindings/python/proton/handlers.py index a1cf836..a689e65 100644 --- a/proton-c/bindings/python/proton/handlers.py +++ b/proton-c/bindings/python/proton/handlers.py @@ -231,7 +231,7 @@ class EndpointStateHandler(Handler): @classmethod def print_error(cls, endpoint, endpoint_type): if endpoint.remote_condition: - logging.error(endpoint.remote_condition.description) + logging.error(endpoint.remote_condition.description or endpoint.remote_condition.name) elif cls.is_local_open(endpoint) and cls.is_remote_closed(endpoint): logging.error("%s closed by peer" % endpoint_type) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org