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:
Michal Privoznik 2023-08-24 17:03:59 +02:00
parent b7c3bb0a84
commit 9e47d4a657
2 changed files with 5 additions and 10 deletions

View File

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

View File

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