On 03/26/2018 01:38 AM, Peter Xu wrote:
When someone sents a command before QMP handshake, error was like this:

s/sents/sends/
s/error was/the error used to be/


  {"execute": "query-cpus"}
  {"error": {"class": "CommandNotFound", "desc":
             "Expecting capabilities negotiation with 'qmp_capabilities'"}}

While after cf869d5317 it becomes:

  {"execute": "query-cpus"}
  {"error": {"class": "CommandNotFound", "desc":
             "The command query-cpus has not been found"}}

Fix it back to the nicer one.

Fixes: cf869d5317 ("qmp: support out-of-band (oob) execution", 2018-03-19)
Reported-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Signed-off-by: Peter Xu <pet...@redhat.com>
---
  monitor.c | 23 ++++++++---------------
  1 file changed, 8 insertions(+), 15 deletions(-)


Reviewed-by: Eric Blake <ebl...@redhat.com>

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Reply via email to