diff options
author | Markus Armbruster <armbru@redhat.com> | 2024-02-16 15:58:31 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2024-02-26 10:43:56 +0100 |
commit | 573e2223f91a1662dad3c4ab5f6724bbe2633eff (patch) | |
tree | f0b5120853594459b4874852ffb4cdea92100f21 /tests/qapi-schema | |
parent | bf00dc19f3aacf014b308d57bb0debf250339396 (diff) | |
download | qemu-573e2223f91a1662dad3c4ab5f6724bbe2633eff.zip qemu-573e2223f91a1662dad3c4ab5f6724bbe2633eff.tar.gz qemu-573e2223f91a1662dad3c4ab5f6724bbe2633eff.tar.bz2 |
qapi: Improve error message for empty doc sections
Improve the message for an empty tagged section from
empty doc section 'Note'
to
text required after 'Note:'
and the message for an empty argument or feature description from
empty doc section 'foo'
to
text required after '@foo:'
Improve the error position to refer to the beginning of the empty
section instead of its end.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240216145841.2099240-8-armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'tests/qapi-schema')
-rw-r--r-- | tests/qapi-schema/doc-empty-section.err | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qapi-schema/doc-empty-section.err b/tests/qapi-schema/doc-empty-section.err index ba7ba70..5f03a6d 100644 --- a/tests/qapi-schema/doc-empty-section.err +++ b/tests/qapi-schema/doc-empty-section.err @@ -1 +1 @@ -doc-empty-section.json:7:1: empty doc section 'Note' +doc-empty-section.json:6: text required after 'Note:' |