From d1169464245bcd4c89cbcc64f8937df61ae6bd4b Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 14 May 2014 17:43:13 +0800 Subject: qmp: improve error reporting for -object and object-add Use QERR_INVALID_PARAMETER_VALUE for consistency. Signed-off-by: Paolo Bonzini Signed-off-by: Hu Tao Acked-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- qmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qmp.c') 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; } -- cgit v1.2.3