mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
qemuMigrationDstPrecreateStorage: Improve error messages
Change the error messages so that they can be used to identify the problematic disk or image. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
cecbaa87d5
commit
16832e0dd2
@ -457,7 +457,7 @@ qemuMigrationDstPrecreateStorage(virDomainObj *vm,
|
||||
|
||||
if (!(disk = virDomainDiskByTarget(vm->def, nbd->disks[i].target))) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("unable to find disk by target: %1$s"),
|
||||
_("unable to find disk target '%1$s' for non-shared-storage migration"),
|
||||
nbd->disks[i].target);
|
||||
goto cleanup;
|
||||
}
|
||||
@ -476,8 +476,9 @@ qemuMigrationDstPrecreateStorage(virDomainObj *vm,
|
||||
}
|
||||
|
||||
if (incremental) {
|
||||
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
|
||||
_("pre-creation of storage targets for incremental storage migration is not supported"));
|
||||
virReportError(VIR_ERR_OPERATION_UNSUPPORTED,
|
||||
_("pre-creation of storage target '%1$s' for incremental storage migration of disk '%2$s' is not supported"),
|
||||
NULLSTR(diskSrcPath), nbd->disks[i].target);
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user