OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4932b89
)
qmp: improve error reporting for -object and object-add
author
Paolo Bonzini
<pbonzini@redhat.com>
Wed, 14 May 2014 09:43:13 +0000
(17:43 +0800)
committer
Michael S. Tsirkin
<mst@redhat.com>
Thu, 19 Jun 2014 15:44:19 +0000
(18:44 +0300)
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>
qmp.c
patch
|
blob
|
history
diff --git
a/qmp.c
b/qmp.c
index
b722dbe
..
c3c0229
100644
(file)
--- 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;
}