[PATCH 1/3] qemu: domain: Mention searched disk in error of qemuDomainDiskByName

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mention the argument used if the disk can't be located.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 src/qemu/qemu_domain.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index 470d342afc..7e9b2db9eb 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -12491,8 +12491,8 @@ qemuDomainDiskByName(virDomainDefPtr def,
     virDomainDiskDefPtr ret;

     if (!(ret = virDomainDiskByName(def, name, true))) {
-        virReportError(VIR_ERR_INVALID_ARG, "%s",
-                       _("No device found for specified path"));
+        virReportError(VIR_ERR_INVALID_ARG,
+                       _("disk '%s' not found in domain"), name);
         return NULL;
     }

-- 
2.23.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux