mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
qobject: Propagate parse errors through qobject_from_json()
The next few commits will put the errors to use where appropriate. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <1488317230-26248-13-git-send-email-armbru@redhat.com>
This commit is contained in:
parent
bff17e84a9
commit
57348c2f18
6 changed files with 37 additions and 37 deletions
|
@ -50,9 +50,9 @@ QObject *qobject_from_jsonv(const char *string, va_list *ap, Error **errp)
|
|||
return state.result;
|
||||
}
|
||||
|
||||
QObject *qobject_from_json(const char *string)
|
||||
QObject *qobject_from_json(const char *string, Error **errp)
|
||||
{
|
||||
return qobject_from_jsonv(string, NULL, NULL);
|
||||
return qobject_from_jsonv(string, NULL, errp);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue