Mention the argument used if the disk can't be located.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
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