qapi: Improve error position for bogus invalid "Returns" section
commitbf00dc19f3aacf014b308d57bb0debf250339396
authorMarkus Armbruster <armbru@redhat.com>
Fri, 16 Feb 2024 14:58:30 +0000 (16 15:58 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 26 Feb 2024 09:43:56 +0000 (26 10:43 +0100)
tree64ce6eb2bab7a32ea06d1aabef8a5fbd641c8a54
parent15333abed9112f99e0b1af4327154af733b987d3
qapi: Improve error position for bogus invalid "Returns" section

When something other than a command has a "Returns" section, the error
message points to the beginning of the definition comment.  Point to
the "Returns" section instead.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240216145841.2099240-7-armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
scripts/qapi/parser.py
tests/qapi-schema/doc-invalid-return.err