2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 11:01:09 +00:00

Improve error on nodeconfig parse errors

The current error is vague and confusing, clarify with
more data showing what went wrong.
This commit is contained in:
Jarrod Johnson 2021-05-18 10:33:27 -04:00
parent bb1559c8a2
commit b63565972b

View File

@ -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