]> xenbits.xensource.com Git - libvirt.git/commit
virsh: improve doMigrate function docs
authorAlex Jia <ajia@redhat.com>
Wed, 11 Jan 2012 08:23:03 +0000 (16:23 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 11 Jan 2012 10:50:33 +0000 (11:50 +0100)
commitc41a21de3abb6a080d87360ed7b246b070703b88
treea9c1b9327999cf03bc63ee3da003a355a62e1272
parent99be754ada24689d00d5b471c009ed747ff9a1f0
virsh: improve doMigrate function docs

When running virsh migrate with --xml option and actual xml file doesn't
exist, virsh hasn't output any error information, although return value
is 1.

* tools/virsh.c: Raising a appropriate error information when operation fails.

* How to reproduce?
% virsh migrate <domain> --live qemu+ssh://<target host>/system --xml non-existent.xml
% echo $?

* Fixed result:
error: file 'non-existent.xml' doesn't exist

Signed-off-by: Alex Jia <ajia@redhat.com>
tools/virsh.c