From 2caba36cc61ee3993334bc423f0852f8006fdfcf Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 27 Jul 2013 17:41:56 +0200 Subject: qapi.py: Decent syntax error reporting Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake Message-id: 1374939721-7876-5-git-send-email-armbru@redhat.com Signed-off-by: Anthony Liguori --- tests/qapi-schema/test-qapi.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/qapi-schema/test-qapi.py') diff --git a/tests/qapi-schema/test-qapi.py b/tests/qapi-schema/test-qapi.py index 3280eff..b3d1e1d 100644 --- a/tests/qapi-schema/test-qapi.py +++ b/tests/qapi-schema/test-qapi.py @@ -16,6 +16,8 @@ import sys try: exprs = parse_schema(sys.stdin) +except SystemExit: + raise except: print >>sys.stderr, "Crashed:", sys.exc_info()[0] exit(1) -- cgit v1.1