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 <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
Peter Krempa 2019-12-06 13:59:17 +01:00
parent 863c0d8e8d
commit ca67d02fbe

View File

@ -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;
}