]> git.proxmox.com Git - mirror_qemu.git/commit - qapi/qobject-input-visitor.c
qapi: return a 'missing parameter' error
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 30 Sep 2016 09:59:48 +0000 (13:59 +0400)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 7 Oct 2016 17:22:11 +0000 (19:22 +0200)
commit1382d4abdf9619985e4078e37e49e487cea9935e
tree7375d96c414975350045c389c72dcfc4e30124c5
parenteac8e79ff749fc15e1dca4caccf1f38664ab4915
qapi: return a 'missing parameter' error

The 'old' dispatch code returned a QERR_MISSING_PARAMETER for missing
parameters, but the qapi qmp_dispatch() code uses
QERR_INVALID_PARAMETER_TYPE.

Improve qapi code to return QERR_MISSING_PARAMETER where
appropriate.

Fix expected error message in iotests.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20160930095948.3154-4-marcandre.lureau@redhat.com>
[Drop incorrect error_setg() from qmp_input_type_any() and
qmp_input_type_null()]
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
qapi/qmp-input-visitor.c
tests/qemu-iotests/087.out