|
@@ -472,6 +472,8 @@ class Section:
|
|
# pylint: disable=too-few-public-methods
|
|
# pylint: disable=too-few-public-methods
|
|
def __init__(self, parser: QAPISchemaParser,
|
|
def __init__(self, parser: QAPISchemaParser,
|
|
name: Optional[str] = None):
|
|
name: Optional[str] = None):
|
|
|
|
+ # section source info, i.e. where it begins
|
|
|
|
+ self.info = parser.info
|
|
# parser, for error messages about indentation
|
|
# parser, for error messages about indentation
|
|
self._parser = parser
|
|
self._parser = parser
|
|
# optional section name (argument/member or section name)
|
|
# optional section name (argument/member or section name)
|
|
@@ -770,7 +772,7 @@ def check_args_section(
|
|
if not section.member]
|
|
if not section.member]
|
|
if bogus:
|
|
if bogus:
|
|
raise QAPISemError(
|
|
raise QAPISemError(
|
|
- self.info,
|
|
|
|
|
|
+ args[bogus[0]].info,
|
|
"documented %s%s '%s' %s not exist" % (
|
|
"documented %s%s '%s' %s not exist" % (
|
|
what,
|
|
what,
|
|
"s" if len(bogus) > 1 else "",
|
|
"s" if len(bogus) > 1 else "",
|