aboutsummaryrefslogtreecommitdiff
path: root/qmp.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-05-14 17:43:13 +0800
committerMichael S. Tsirkin <mst@redhat.com>2014-06-19 18:44:19 +0300
commitd1169464245bcd4c89cbcc64f8937df61ae6bd4b (patch)
tree84ab2cd27fd8e0c7c94802254e9c03225a3e7744 /qmp.c
parent4932b8971bb6fa384ce8c1c61db744b22ba83dce (diff)
qmp: improve error reporting for -object and object-add
Use QERR_INVALID_PARAMETER_VALUE for consistency. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'qmp.c')
-rw-r--r--qmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmp.c b/qmp.c
index b722dbec9a..c3c0229cdf 100644
--- a/qmp.c
+++ b/qmp.c
@@ -540,7 +540,7 @@ void object_add(const char *type, const char *id, const QDict *qdict,
klass = object_class_by_name(type);
if (!klass) {
- error_setg(errp, "invalid class name");
+ error_setg(errp, "invalid object type: %s", type);
return;
}