]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: monitor: Use qemuMonitorJSONCheckError in qemuMonitorJSONBlockStream
authorPeter Krempa <pkrempa@redhat.com>
Tue, 14 Aug 2018 10:54:16 +0000 (12:54 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 24 Aug 2018 11:52:44 +0000 (13:52 +0200)
The API does not report any special job-related error so the generic
error function should be used.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_monitor_json.c

index 0eb789768540a0873b0bde6c49df87c366f16a85..12ab05a88201a7b57b21505e71a34430494442b8 100644 (file)
@@ -4833,7 +4833,7 @@ qemuMonitorJSONBlockStream(qemuMonitorPtr mon,
     if (qemuMonitorJSONCommand(mon, cmd, &reply) < 0)
         goto cleanup;
 
-    if (qemuMonitorJSONBlockJobError(cmd, reply, device) < 0)
+    if (qemuMonitorJSONCheckError(cmd, reply) < 0)
         goto cleanup;
 
     ret = 0;