From b283b50cc6bdc20d64230ad2a5ea8f73d15e2f62 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 18 May 2021 10:33:27 -0400 Subject: [PATCH] Improve error on nodeconfig parse errors The current error is vague and confusing, clarify with more data showing what went wrong. --- confluent_client/bin/nodeconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_client/bin/nodeconfig b/confluent_client/bin/nodeconfig index 80732644..00764970 100755 --- a/confluent_client/bin/nodeconfig +++ b/confluent_client/bin/nodeconfig @@ -159,7 +159,7 @@ def parse_config_line(arguments, single=False): if setmode is None: setmode = True if setmode != True: - bailout('Cannot do set and query in same command') + bailout('Cannot do set and query in same command: Query detected but "{0}" appears to be set'.format(param)) if '=' in param: key, _, value = param.partition('=') _assign_value() @@ -171,7 +171,7 @@ def parse_config_line(arguments, single=False): if setmode is None: setmode = False if setmode != False: - bailout('Cannot do set and query in same command') + bailout('Cannot do set and query in same command: Set mode detected but "{0}" appears to be a query'.format(param)) if '.' not in param: if param == 'bmc': printallbmc = True