diff options
author | Markus Armbruster <armbru@redhat.com> | 2023-05-10 16:16:37 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2023-05-22 10:03:26 +0200 |
commit | 290e48e8f1ec975c100520fb697b0ae7300d0fb3 (patch) | |
tree | 6862e8b6b02915ef5491a600afb4f9e47bd5f281 /tests | |
parent | aa222a8e4f975284b3f8f131653a4114b3d333b3 (diff) | |
download | qemu-290e48e8f1ec975c100520fb697b0ae7300d0fb3.zip qemu-290e48e8f1ec975c100520fb697b0ae7300d0fb3.tar.gz qemu-290e48e8f1ec975c100520fb697b0ae7300d0fb3.tar.bz2 |
qapi: Improve error message for description following section
The error message is bad when the section is untagged. For instance,
test case doc-interleaved-section produces "'@foobar:' can't follow
'Note' section", which is okay, but if we drop the "Note:" tag, we get
"'@foobar:' can't follow 'None' section, which is bad.
Change the error message to "description of '@foobar:' follows a
section".
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20230510141637.3685080-1-armbru@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
[Conflict with commit 3e32dca3f0d resolved]
Diffstat (limited to 'tests')
-rw-r--r-- | tests/qapi-schema/doc-interleaved-section.err | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qapi-schema/doc-interleaved-section.err b/tests/qapi-schema/doc-interleaved-section.err index 715d58c..e5d1ef5 100644 --- a/tests/qapi-schema/doc-interleaved-section.err +++ b/tests/qapi-schema/doc-interleaved-section.err @@ -1 +1 @@ -doc-interleaved-section.json:15:1: '@foobar:' can't follow 'Note' section +doc-interleaved-section.json:15:1: description of '@foobar:' follows a section |