diff --git a/qmp.c b/qmp.c index d0d98e777b1a41f0bdd310d394f77c2a5aaeb9a7..f556a04d1981f7424d01c48c39168c5f9573a11e 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; }