]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Tue Mar 25 10:23:00 UTC 2008 Richard W.M. Jones <rjones@redhat.com>
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 25 Mar 2008 10:26:32 +0000 (10:26 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 25 Mar 2008 10:26:32 +0000 (10:26 +0000)
       * src/virsh.c: Additional error messages for missing
         parameters (Shigeki Sakamoto).

ChangeLog
src/virsh.c

index df4c662f64603b7c17d32eb8f8bb17f1887fed26..daddaf7d4d346b0f9f7e7d47e724cc8af34f14e5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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
index ec9da261d2b5e3e95fabc2fa4896b4deb474901f..c541f887248739e7557921d642032653b681ac12 100644 (file)
@@ -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;
     }