On Fri, Feb 16, 2024 at 03:58:29PM +0100, Markus Armbruster wrote:
> When documented arguments don't exist, the error message points to the
> beginning of the definition comment.  Point to the first bogus
> argument description instead.
> 
> Signed-off-by: Markus Armbruster <arm...@redhat.com>
> ---
>  scripts/qapi/parser.py                          | 4 +++-
>  tests/qapi-schema/doc-bad-alternate-member.err  | 2 +-
>  tests/qapi-schema/doc-bad-boxed-command-arg.err | 2 +-
>  tests/qapi-schema/doc-bad-command-arg.err       | 2 +-
>  tests/qapi-schema/doc-bad-enum-member.err       | 2 +-
>  tests/qapi-schema/doc-bad-event-arg.err         | 2 +-
>  tests/qapi-schema/doc-bad-feature.err           | 2 +-
>  tests/qapi-schema/doc-bad-union-member.err      | 2 +-
>  8 files changed, 10 insertions(+), 8 deletions(-)

Reviewed-by: Daniel P. Berrangé <berra...@redhat.com>


With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|


Reply via email to