On 11/3/25 07:53, Markus Armbruster wrote:
create_backend()'s caller catches QAPIError, and returns non-zero exit
code on catch.  The caller's caller passes the exit code to
sys.exit().

create_backend() doesn't care: it reports errors to stderr and
sys.exit()s.

Change it to raise QAPIError instead.

Signed-off-by: Markus Armbruster <arm...@redhat.com>
---
  scripts/qapi/main.py | 24 +++++++++---------------
  1 file changed, 9 insertions(+), 15 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>


Reply via email to