Skip to content

Commit

Permalink
qapi/parser: fix typo - self.returns.info => self.errors.info
Browse files Browse the repository at this point in the history
Small copy-pasto. The correct info field to use in this conditional
block is self.errors.info.

Fixes: 3a025d3
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>
  • Loading branch information
jnsnow authored and Markus Armbruster committed Apr 24, 2024
1 parent c25df57 commit 4f8f199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/qapi/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ def check_expr(self, expr: QAPIExpression) -> None:
"'Returns' section is only valid for commands")
if self.errors:
raise QAPISemError(
self.returns.info,
self.errors.info,
"'Errors' section is only valid for commands")

def check(self) -> None:
Expand Down

0 comments on commit 4f8f199

Please sign in to comment.