qapi.py: Fix diagnosing non-objects at a schema's top-level
authorMarkus Armbruster <armbru@redhat.com>
Sat, 27 Jul 2013 15:41:59 +0000 (17:41 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 29 Jul 2013 15:37:11 +0000 (10:37 -0500)
commit5f3cd2b717c949f3afb502fb4c81193eb18ce6aa
tree8e25d6941dca6c5c30c5438305ab00ffeff75d35
parent6974ccd542d11ae5fb1e56dd3d753f2de5cc097e
qapi.py: Fix diagnosing non-objects at a schema's top-level

Report syntax error instead of crashing.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1374939721-7876-8-git-send-email-armbru@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
scripts/qapi.py
tests/qapi-schema/non-objects.err
tests/qapi-schema/quoted-structural-chars.err