mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
json-parser: propagate error from parser
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
d5ec4f27c3
commit
ef749d07e7
5 changed files with 25 additions and 7 deletions
3
qerror.h
3
qerror.h
|
@ -121,6 +121,9 @@ QError *qobject_to_qerror(const QObject *obj);
|
|||
#define QERR_JSON_PARSING \
|
||||
"{ 'class': 'JSONParsing', 'data': {} }"
|
||||
|
||||
#define QERR_JSON_PARSE_ERROR \
|
||||
"{ 'class': 'JSONParseError', 'data': { 'message': %s } }"
|
||||
|
||||
#define QERR_KVM_MISSING_CAP \
|
||||
"{ 'class': 'KVMMissingCap', 'data': { 'capability': %s, 'feature': %s } }"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue