qapi: Fix error message when type name or array is expected
commit6f2ab6090de993988f7345e449852821ffc75f4e
authorMarkus Armbruster <armbru@redhat.com>
Thu, 16 Mar 2023 07:13:18 +0000 (16 08:13 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 24 Apr 2023 13:21:39 +0000 (24 15:21 +0200)
treed9c9d1f9c6cb65f5fdb754f9bd16d0e926ff1d08
parent7c4075190da24a01d9c02f5f59cf0651611bd40f
qapi: Fix error message when type name or array is expected

We incorrectly report "FOO should be a type name" when it could also
be an array.  Fix that.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20230316071325.492471-8-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
scripts/qapi/expr.py
tests/qapi-schema/event-nest-struct.err
tests/qapi-schema/nested-struct-data.err
tests/qapi-schema/returns-dict.err
tests/qapi-schema/struct-member-invalid.err