]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: clarify message about block peek format restriction
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 18 May 2018 15:12:29 +0000 (16:12 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 21 May 2018 10:30:52 +0000 (11:30 +0100)
Include the actual disk format in the error message to help the user see
what is wrong.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_driver.c

index e61af23870d97643a08b6dc9847dce60a2ba766d..3a328e5d4679d9e259945767190e61a8a81d1ef1 100644 (file)
@@ -11544,8 +11544,9 @@ qemuDomainBlockPeek(virDomainPtr dom,
     }
 
     if (disk->src->format != VIR_STORAGE_FILE_RAW) {
-        virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
-                       _("peeking is supported only for RAW disks"));
+        virReportError(VIR_ERR_OPERATION_UNSUPPORTED,
+                       _("peeking is only supported for disk with 'raw' format not '%s'"),
+                       virStorageFileFormatTypeToString(disk->src->format));
         goto cleanup;
     }