]> git.ipfire.org Git - thirdparty/qemu.git/commit
qapi: Improve reporting of invalid flags
authorMarkus Armbruster <armbru@redhat.com>
Fri, 27 Sep 2019 13:46:32 +0000 (15:46 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Sat, 28 Sep 2019 15:17:19 +0000 (17:17 +0200)
commita6735a574382b214d7f1ee7b315cc81421aaa77e
treecda103d448f470f8837c20d53029299ebbe37da5
parent576f0b8a53ab12d6ca46ec8f89ec0901d80d0ad8
qapi: Improve reporting of invalid flags

Split check_flags() off check_keys() and have check_exprs() call it
later, so its error messages gain an "in definition" line.  Tweak the
error messages.

Checking values in a function named check_keys() is unclean anyway.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190927134639.4284-20-armbru@redhat.com>
scripts/qapi/common.py
tests/qapi-schema/allow-preconfig-test.err
tests/qapi-schema/args-bad-boxed.err
tests/qapi-schema/oob-test.err
tests/qapi-schema/type-bypass-bad-gen.err