diff options
author | Markus Armbruster <armbru@redhat.com> | 2017-03-03 13:32:31 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2017-03-05 09:14:19 +0100 |
commit | 910f738b851a263396fc85b2052e47f884ffead3 (patch) | |
tree | 9565ed5e772adbaf177af1ec82a227867dc7eb51 /tests/test-qga.c | |
parent | 99fb0c53c038105bae68b02a3d9f1cbf7951ba10 (diff) | |
download | qemu-910f738b851a263396fc85b2052e47f884ffead3.zip qemu-910f738b851a263396fc85b2052e47f884ffead3.tar.gz qemu-910f738b851a263396fc85b2052e47f884ffead3.tar.bz2 |
qapi: Improve a QObject input visitor error message
The QObject input visitor has three error message formats:
* Parameter '%s' is missing
* "Invalid parameter type for '%s', expected: %s"
* "QMP input object member '%s' is unexpected"
The '%s' are member names (or "null", but I'll fix that later).
The last error message calls the thing "QMP input object member"
instead of "parameter". Misleading when the visitor is used on
QObjects that don't come from QMP. Change it to "Parameter '%s' is
unexpected".
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1488544368-30622-12-git-send-email-armbru@redhat.com>
Diffstat (limited to 'tests/test-qga.c')
-rw-r--r-- | tests/test-qga.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-qga.c b/tests/test-qga.c index 868b02a..ae97b57 100644 --- a/tests/test-qga.c +++ b/tests/test-qga.c @@ -213,7 +213,7 @@ static void test_qga_invalid_args(gconstpointer fix) desc = qdict_get_try_str(error, "desc"); g_assert_cmpstr(class, ==, "GenericError"); - g_assert_cmpstr(desc, ==, "QMP input object member 'foo' is unexpected"); + g_assert_cmpstr(desc, ==, "Parameter 'foo' is unexpected"); QDECREF(ret); } |