From 73c06fd25eae89d26c7bfeeb802bcd032034c8c2 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 8 Oct 2018 09:54:03 -0400 Subject: [PATCH] Fix display of error on join of collective --- confluent_server/bin/collective | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/confluent_server/bin/collective b/confluent_server/bin/collective index a6465ef4..5f0c78f6 100644 --- a/confluent_server/bin/collective +++ b/confluent_server/bin/collective @@ -66,8 +66,9 @@ def join_collective(server, invitation): 'invitation': invitation, 'server': server}}) res = tlvdata.recv(s) - print(res.get('collective', - {'status': 'Unknown response: ' + repr(res)})['status']) + res = res.get('collective', + {'status': 'Unknown response: ' + repr(res)}) + print(res.get('status', res['error'])) def show_collective():