diff options
author | Markus Armbruster <armbru@redhat.com> | 2009-12-07 21:37:16 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-07 16:34:36 -0600 |
commit | 77e595e7c613c495714d04ce63fb9bce263c29ae (patch) | |
tree | 9c2abb8fae39552e97e8bb965961b24be557f1d9 /QMP | |
parent | 7cdfcfe18f0a9e8603e4a14770a84eb5649521c5 (diff) | |
download | qemu-77e595e7c613c495714d04ce63fb9bce263c29ae.zip qemu-77e595e7c613c495714d04ce63fb9bce263c29ae.tar.gz qemu-77e595e7c613c495714d04ce63fb9bce263c29ae.tar.bz2 |
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 'QMP')
-rw-r--r-- | QMP/qmp-spec.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/QMP/qmp-spec.txt b/QMP/qmp-spec.txt index 8429789..1cbd21c 100644 --- a/QMP/qmp-spec.txt +++ b/QMP/qmp-spec.txt @@ -102,13 +102,16 @@ completed because of an error condition. The format is: -{ "error": { "class": json-string, "data": json-value }, "id": json-value } +{ "error": { "class": json-string, "data": json-value, "desc": json-string }, + "id": json-value } Where, - The "class" member contains the error class name (eg. "ServiceUnavailable") - The "data" member contains specific error data and is defined in a per-command basis, it will be an empty json-object if the error has no data +- The "desc" member is a human-readable error message. Clients should + not attempt to parse this message. - The "id" member contains the transaction identification associated with the command execution (if issued by the Client) |