mirror of
https://github.com/mii443/qemu.git
synced 2025-12-09 14:08:32 +00:00
qapi.py: Decent syntax error reporting
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 1374939721-7876-5-git-send-email-armbru@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
committed by
Anthony Liguori
parent
c7a3f25200
commit
2caba36cc6
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user