提交 dc1824b7 编写于 作者: R Richard W.M. Jones

Tue Mar 25 10:23:00 UTC 2008 Richard W.M. Jones <rjones@redhat.com>

       * src/virsh.c: Additional error messages for missing
         parameters (Shigeki Sakamoto).
上级 928a84e1
Tue Mar 25 10:23:00 UTC 2008 Richard W.M. Jones <rjones@redhat.com>
* src/virsh.c: Additional error messages for missing
parameters (Shigeki Sakamoto).
Mon Mar 24 11:56:58 CET 2008 Daniel Veillard <veillard@redhat.com>
* src/qemu_driver.c: remove trailing newlines from error messages
......
......@@ -1729,6 +1729,7 @@ cmdVcpupin(vshControl * ctl, vshCmd * cmd)
}
if (!(cpulist = vshCommandOptString(cmd, "cpulist", NULL))) {
vshError(ctl, FALSE, _("vcpupin: Missing cpulist"));
virDomainFree(dom);
return FALSE;
}
......@@ -1739,6 +1740,7 @@ cmdVcpupin(vshControl * ctl, vshCmd * cmd)
}
if (virDomainGetInfo(dom, &info) != 0) {
vshError(ctl, FALSE, _("vcpupin: Invalid vCPU number."));
virDomainFree(dom);
return FALSE;
}
......@@ -4473,6 +4475,7 @@ cmdAttachDevice(vshControl * ctl, vshCmd * cmd)
from = vshCommandOptString(cmd, "file", &found);
if (!found) {
vshError(ctl, FALSE, _("attach-device: Missing <file> option"));
virDomainFree(dom);
return FALSE;
}
......@@ -4529,6 +4532,7 @@ cmdDetachDevice(vshControl * ctl, vshCmd * cmd)
from = vshCommandOptString(cmd, "file", &found);
if (!found) {
vshError(ctl, FALSE, _("detach-device: Missing <file> option"));
virDomainFree(dom);
return FALSE;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册