aboutsummaryrefslogtreecommitdiff
path: root/qmp.c
diff options
context:
space:
mode:
authorHani Benhabiles <kroosec@gmail.com>2014-02-18 23:42:36 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2014-03-02 17:12:41 +0400
commitde580dafade551cf67607f114ff9b5eeb881cc42 (patch)
tree509d6b659958debaf6575983475e5725ac3f716b /qmp.c
parent1c884abeded1fee3680a3f1db655bf70d3b49e97 (diff)
object: Report type in error when not user creatable.
Signed-off-by: Hani Benhabiles <hani@linux.com> Reviewed-by: Hu Tao <hutao@cn.fujitsu.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'qmp.c')
-rw-r--r--qmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qmp.c b/qmp.c
index d0d98e777b..f556a04d19 100644
--- a/qmp.c
+++ b/qmp.c
@@ -556,8 +556,8 @@ void object_add(const char *type, const char *id, const QDict *qdict,
}
if (!object_dynamic_cast(obj, TYPE_USER_CREATABLE)) {
- error_setg(&local_err, "object '%s' isn't supported by object-add",
- id);
+ error_setg(&local_err, "object type '%s' isn't supported by object-add",
+ type);
goto out;
}