mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
bhyve: sync error messages
Use the same error messages for serial devices validation which are already used in bhyve_domain.c Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
1 parent
79456b79f3
commit
22ee3b78db
1 file changed
+2
-2
@@ -171,7 +171,7 @@ bhyveBuildConsoleArgStr(const virDomainDef *def, virCommand *cmd)
|
||||
/* bhyve supports 4 ports: com1, com2, com3, com4 */
|
||||
if (chr->target.port > 3) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("only two serial ports are supported"));
|
||||
_("Only four serial ports are supported"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -190,7 +190,7 @@ bhyveBuildConsoleArgStr(const virDomainDef *def, virCommand *cmd)
|
||||
break;
|
||||
default:
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("only nmdm and tcp console types are supported"));
|
||||
_("Only 'nmdm' and 'tcp' console types are supported"));
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user