commands: config: fix error message when providing wrong key formating.

Signed-off-by: Matthias Wauer <matthiaswauer@gmail.com>
This commit is contained in:
Matthias Wauer 2019-08-19 21:31:34 +02:00 committed by Marti Bolivar
parent ed37d67c36
commit ca27e7a9e8
1 changed files with 2 additions and 2 deletions

View File

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