]> git.proxmox.com Git - mirror_qemu.git/commit - qdev-monitor.c
hmp: Allow for error message hints on HMP
authorEric Blake <eblake@redhat.com>
Thu, 10 Sep 2015 16:19:16 +0000 (10:19 -0600)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 18 Sep 2015 12:34:39 +0000 (14:34 +0200)
commit50b7b000c9171c1253c1c875f46f654c3c0e1fc8
tree2972106f6aeee4784741c5bcf4673e0f1d67ccaa
parent615cf669b55a689f9e535ecf87075e50004b6e0a
hmp: Allow for error message hints on HMP

Commits 7216ae3d and d2828429 disabled some error message hints,
all because a change to use modern error reporting meant that the
hint would be output prior to the actual error.  Fix this by making
hints a first-class member of Error.

For example, we are now back to the pleasant:

 $ qemu-system-x86_64 --nodefaults -S --vnc :0 --chardev null,id=,
 qemu-system-x86_64: --chardev null,id=,: Parameter 'id' expects an identifier
 Identifiers consist of letters, digits, '-', '.', '_', starting with a letter.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <1441901956-21991-1-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
include/qapi/error.h
qdev-monitor.c
util/error.c
util/qemu-option.c