qapi/parser: fix typo - self.returns.info => self.errors.info
Small copy-pasto. The correct info field to use in this conditional block is self.errors.info. Fixes: 3a025d3d1ffa Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-ID: <20240315152301.3621858-2-armbru@redhat.com>
This commit is contained in:
parent
c25df57ae8
commit
4f8f199fa5
@ -733,7 +733,7 @@ class QAPIDoc:
|
|||||||
"'Returns' section is only valid for commands")
|
"'Returns' section is only valid for commands")
|
||||||
if self.errors:
|
if self.errors:
|
||||||
raise QAPISemError(
|
raise QAPISemError(
|
||||||
self.returns.info,
|
self.errors.info,
|
||||||
"'Errors' section is only valid for commands")
|
"'Errors' section is only valid for commands")
|
||||||
|
|
||||||
def check(self) -> None:
|
def check(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user