diff options
author | Hani Benhabiles <kroosec@gmail.com> | 2014-02-18 23:42:36 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-03-02 17:12:41 +0400 |
commit | de580dafade551cf67607f114ff9b5eeb881cc42 (patch) | |
tree | 509d6b659958debaf6575983475e5725ac3f716b | |
parent | 1c884abeded1fee3680a3f1db655bf70d3b49e97 (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>
-rw-r--r-- | qmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |