diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-05-14 17:43:13 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2014-06-19 18:44:19 +0300 |
commit | d1169464245bcd4c89cbcc64f8937df61ae6bd4b (patch) | |
tree | 84ab2cd27fd8e0c7c94802254e9c03225a3e7744 /qmp.c | |
parent | 4932b8971bb6fa384ce8c1c61db744b22ba83dce (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |