libvirt/tools
Chris Lalancette 23b1e5c0b0 Better error reporting in virsh.
When hitting failures in virsh, a common idiom is
to jump to a cleanup label, free some resources, and
then return a FALSE error code to vshCommandRun.
In theory, vshCommandRun is then supposed to print
out the last error.  The problem is that many of
the cleanup paths have library calls to free resources,
and all of those library calls clear out the last error.
This is leading to situations where no error is being
reported at all.

This patch remedies the situation somewhat by
printing out the errors inside the command methods
themselves when we know it will go through a cleanup
path that will lose the error.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
2010-04-06 09:48:13 -04:00
..
.gitignore Make pki_check.sh into an installed & supported tool 2009-09-21 14:41:46 +01:00
console.c build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
console.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
libvirt_win_icon_16x16.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_32x32.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_48x48.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_64x64.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
Makefile.am Keep build quiet for generated file 2010-04-01 12:35:51 +01:00
virsh_win_icon.rc Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
virsh.c Better error reporting in virsh. 2010-04-06 09:48:13 -04:00
virsh.pod Add a managedsave command to virsh 2010-04-04 11:36:59 +02:00
virt-pki-validate.in build: import latest gnulib 2010-04-02 10:18:55 -06:00
virt-xml-validate.in build: import latest gnulib 2010-04-02 10:18:55 -06:00