summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2009-12-07 21:37:16 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-07 16:34:36 -0600
commit77e595e7c613c495714d04ce63fb9bce263c29ae (patch)
tree9c2abb8fae39552e97e8bb965961b24be557f1d9 /monitor.c
parent7cdfcfe18f0a9e8603e4a14770a84eb5649521c5 (diff)
downloadqemu-77e595e7c613c495714d04ce63fb9bce263c29ae.tar.gz
qemu-77e595e7c613c495714d04ce63fb9bce263c29ae.tar.bz2
qemu-77e595e7c613c495714d04ce63fb9bce263c29ae.zip
QMP: add human-readable description to error response
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index 16d611e5aa..a38a103e42 100644
--- a/monitor.c
+++ b/monitor.c
@@ -305,6 +305,7 @@ static void monitor_protocol_emitter(Monitor *mon, QObject *data)
}
} else {
/* error response */
+ qdict_put(mon->error->error, "desc", qerror_human(mon->error));
qdict_put(qmp, "error", mon->error->error);
QINCREF(mon->error->error);
QDECREF(mon->error);