mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
error message on vcpupin
* src/virsh.c: patch from Shigeki Sakamoto adding message on vcpupin Daniel
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
Fri Apr 4 13:19:08 CEST 2008 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/virsh.c: patch from Shigeki Sakamoto adding message on vcpupin
|
||||
|
||||
Fri Apr 4 10:04:23 CEST 2008 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* docs//* po/*: regenerated the documentation and reextracted the
|
||||
|
||||
@@ -1741,12 +1741,14 @@ cmdVcpupin(vshControl * ctl, vshCmd * cmd)
|
||||
}
|
||||
|
||||
if (virDomainGetInfo(dom, &info) != 0) {
|
||||
vshError(ctl, FALSE, "%s", _("vcpupin: Invalid vCPU number."));
|
||||
vshError(ctl, FALSE, "%s",
|
||||
_("vcpupin: failed to get domain informations."));
|
||||
virDomainFree(dom);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (vcpu >= info.nrVirtCpu) {
|
||||
vshError(ctl, FALSE, _("vcpupin: Invalid vCPU number."));
|
||||
virDomainFree(dom);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user