error message on vcpupin

* src/virsh.c: patch from Shigeki Sakamoto adding message on vcpupin
Daniel
This commit is contained in:
Daniel Veillard 2008-04-04 11:20:45 +00:00
parent 3a50451e84
commit 62ee5d5711
2 changed files with 7 additions and 1 deletions

View File

@ -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> Fri Apr 4 10:04:23 CEST 2008 Daniel Veillard <veillard@redhat.com>
* docs//* po/*: regenerated the documentation and reextracted the * docs//* po/*: regenerated the documentation and reextracted the

View File

@ -1741,12 +1741,14 @@ cmdVcpupin(vshControl * ctl, vshCmd * cmd)
} }
if (virDomainGetInfo(dom, &info) != 0) { 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); virDomainFree(dom);
return FALSE; return FALSE;
} }
if (vcpu >= info.nrVirtCpu) { if (vcpu >= info.nrVirtCpu) {
vshError(ctl, FALSE, _("vcpupin: Invalid vCPU number."));
virDomainFree(dom); virDomainFree(dom);
return FALSE; return FALSE;
} }