mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
vmware: Move error messages onto a single line
Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
b7c3bb0a84
commit
9e47d4a657
@ -355,8 +355,7 @@ vmwareVmxPath(virDomainDef *vmdef, char **vmxPath)
|
||||
*/
|
||||
if (vmdef->ndisks < 1) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||
_("Domain XML doesn't contain any disks, "
|
||||
"cannot deduce datastore and path for VMX file"));
|
||||
_("Domain XML doesn't contain any disks, cannot deduce datastore and path for VMX file"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -370,16 +369,14 @@ vmwareVmxPath(virDomainDef *vmdef, char **vmxPath)
|
||||
|
||||
if (disk == NULL) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||
_("Domain XML doesn't contain any file-based harddisks, "
|
||||
"cannot deduce datastore and path for VMX file"));
|
||||
_("Domain XML doesn't contain any file-based harddisks, cannot deduce datastore and path for VMX file"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
src = virDomainDiskGetSource(disk);
|
||||
if (!src) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||
_("First file-based harddisk has no source, cannot "
|
||||
"deduce datastore and path for VMX file"));
|
||||
_("First file-based harddisk has no source, cannot deduce datastore and path for VMX file"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -509,8 +509,7 @@ vmwareDomainSuspend(virDomainPtr dom)
|
||||
|
||||
if (driver->type == VMWARE_DRIVER_PLAYER) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||
_("vmplayer does not support libvirt suspend/resume"
|
||||
" (vmware pause/unpause) operation "));
|
||||
_("vmplayer does not support libvirt suspend/resume (vmware pause/unpause) operation "));
|
||||
return ret;
|
||||
}
|
||||
|
||||
@ -549,8 +548,7 @@ vmwareDomainResume(virDomainPtr dom)
|
||||
|
||||
if (driver->type == VMWARE_DRIVER_PLAYER) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||
_("vmplayer does not support libvirt suspend/resume "
|
||||
"(vmware pause/unpause) operation "));
|
||||
_("vmplayer does not support libvirt suspend/resume (vmware pause/unpause) operation "));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user