commands: config: fix error message when providing wrong key formating.
Signed-off-by: Matthias Wauer <matthiaswauer@gmail.com>
This commit is contained in:
parent
ed37d67c36
commit
ca27e7a9e8
|
@ -200,8 +200,8 @@ class Config(WestCommand):
|
|||
def _sk(self, args):
|
||||
name_list = args.name.split(".", 1)
|
||||
if len(name_list) != 2:
|
||||
self.parser.error('name {} should be in the form <section>.<key>',
|
||||
exit_code=3)
|
||||
self.parser.error("name '{}' should be in the form "
|
||||
"<section>.<key>".format(args.name))
|
||||
return name_list[0], name_list[1]
|
||||
|
||||
def _perm_error(self, pe, what, section, key):
|
||||
|
|
Loading…
Reference in New Issue