From ca67d02fbe5c47b18a632268266fd23a7c893dd0 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Fri, 6 Dec 2019 13:59:17 +0100 Subject: [PATCH] qemu: domain: Mention searched disk in error of qemuDomainDiskByName Mention the argument used if the disk can't be located. Signed-off-by: Peter Krempa Reviewed-by: Eric Blake --- 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 5b323d26c4..7ab7543ab1 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -12490,8 +12490,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; } -- GitLab