aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/enum-if-invalid.err
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2019-09-27 15:46:35 +0200
committerMarkus Armbruster <armbru@redhat.com>2019-09-28 17:17:45 +0200
commitfab12376d0234ce46517f88b9ecc9a6080522118 (patch)
tree2f7e8fa0d631ebc779a81f7b8f364fe2b10574c8 /tests/qapi-schema/enum-if-invalid.err
parenteeb57c85da04b0c120562b25e3eac5cb16d8bf15 (diff)
qapi: Improve reporting of invalid 'if' further
check_if()'s errors don't point to the offending part of the expression. For instance: tests/qapi-schema/alternate-branch-if-invalid.json:2: 'if' condition ' ' makes no sense Other check_FOO() do, with the help of a @source argument. Make check_if() do that, too. The example above improves to: tests/qapi-schema/alternate-branch-if-invalid.json:2: 'if' condition ' ' of 'data' member 'branch' makes no sense Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20190927134639.4284-23-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/qapi-schema/enum-if-invalid.err')
-rw-r--r--tests/qapi-schema/enum-if-invalid.err2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qapi-schema/enum-if-invalid.err b/tests/qapi-schema/enum-if-invalid.err
index db9eb45b25..30c1f0e91c 100644
--- a/tests/qapi-schema/enum-if-invalid.err
+++ b/tests/qapi-schema/enum-if-invalid.err
@@ -1,2 +1,2 @@
tests/qapi-schema/enum-if-invalid.json: In enum 'TestIfEnum':
-tests/qapi-schema/enum-if-invalid.json:2: 'if' condition must be a string or a list of strings
+tests/qapi-schema/enum-if-invalid.json:2: 'if' condition of 'data' member 'bar' must be a string or a list of strings