virsh: Fix checking for reconnect conditions
virsh: Fix checking for reconnect conditions

virshReportError() function frees the most recent error reported from
libvirt. Condition that checks if connection to the daemon was broken
during last command was then limited to check for SIGPIPE signal not
taking into account possible errors signalized without SIGPIPE.

This patch moves the check before the error is freed, to take into
account code that does not emit SIGPIPE while failing.

* tools/virsh.c: - move check for broken connection before error print.

bjzhang/libvirt,foomango/libvirt,taget/libvirt,agx/libvirt,novel/fbsd-libvirt,emaste/libvirt,trainstack/libvirt,zippy2/libvirt,shugaoye/libvirt,trainstack/libvirt,olafhering/libvirt,jeckersb/libvirt,dumbbell/libvirt,warewolf/libvirt,zippy2/libvirt,taget/libvirt,trainstack/libvirt,cbosdo/libvirt,rmarwaha/libvirt1,fabianfreyer/libvirt,agx/libvirt,iam-TJ/libvirt,trainstack/libvirt,jardasgit/libvirt,jardasgit/libvirt,rmarwaha/libvirt,dumbbell/libvirt,elmarco/libvirt,foomango/libvirt,foomango/libvirt,shugaoye/libvirt,jfehlig/libvirt,eskultety/libvirt,iam-TJ/libvirt,zippy2/libvirt,warewolf/libvirt,rmarwaha/libvirt1,siboulet/libvirt-openvz,shugaoye/libvirt,eskultety/libvirt,warewolf/libvirt,cbosdo/libvirt,cbosdo/libvirt,bjzhang/libvirt,datto/libvirt,fabianfreyer/libvirt,libvirt/libvirt,taget/libvirt,warewolf/libvirt,emaste/libvirt,wiedi/libvirt,siboulet/libvirt-openvz,dumbbell/libvirt,rmarwaha/libvirt1,wiedi/libvirt,olafhering/libvirt,datto/libvirt,libvirt/libvirt,agx/libvirt,rmarwaha/libvirt1,VenkatDatta/libvirt,olafhering/libvirt,siboulet/libvirt-openvz,rmarwaha/libvirt,dumbbell/libvirt,bjzhang/libvirt,shugaoye/libvirt,rlaager/libvirt,novel/fbsd-libvirt,libvirt/libvirt,warewolf/libvirt,eskultety/libvirt,taget/libvirt,dumbbell/libvirt,warewolf/libvirt,novel/fbsd-libvirt,novel/fbsd-libvirt,VenkatDatta/libvirt,trainstack/libvirt,jfehlig/libvirt,jeckersb/libvirt,VenkatDatta/libvirt,bjzhang/libvirt,olafhering/libvirt,cbosdo/libvirt,zippy2/libvirt,iam-TJ/libvirt,andreabolognani/libvirt,iam-TJ/libvirt,emaste/libvirt,andreabolognani/libvirt,rmarwaha/libvirt,dumbbell/libvirt,crobinso/libvirt,iam-TJ/libvirt,jeckersb/libvirt,nertpinx/libvirt,trainstack/libvirt,crobinso/libvirt,wiedi/libvirt,nertpinx/libvirt,wiedi/libvirt,jfehlig/libvirt,danwent/libvirt-ovs,VenkatDatta/libvirt,shugaoye/libvirt,emaste/libvirt,iam-TJ/libvirt,libvirt/libvirt,foomango/libvirt,eskultety/libvirt,zhlcindy/libvirt-1.1.4-maintain,datto/libvirt,jardasgit/libvirt,zhlcindy/libvirt-1.1.4-maintain,crobinso/libvirt,nertpinx/libvirt,datto/libvirt,andreabolognani/libvirt,siboulet/libvirt-openvz,elmarco/libvirt,rmarwaha/libvirt1,wiedi/libvirt,foomango/libvirt,jeckersb/libvirt,novel/fbsd-libvirt,jeckersb/libvirt,novel/fbsd-libvirt,jardasgit/libvirt,wiedi/libvirt,andreabolognani/libvirt,zhlcindy/libvirt-1.1.4-maintain,nertpinx/libvirt,rlaager/libvirt,rmarwaha/libvirt,siboulet/libvirt-openvz,trainstack/libvirt,rlaager/libvirt,novel/fbsd-libvirt,emaste/libvirt,datto/libvirt,danwent/libvirt-ovs,taget/libvirt,eskultety/libvirt,novel/fbsd-libvirt,emaste/libvirt,iam-TJ/libvirt,rmarwaha/libvirt1,rmarwaha/libvirt,rlaager/libvirt,zhlcindy/libvirt-1.1.4-maintain,elmarco/libvirt,novel/fbsd-libvirt,wiedi/libvirt,cbosdo/libvirt,andreabolognani/libvirt,crobinso/libvirt,jeckersb/libvirt,fabianfreyer/libvirt,emaste/libvirt,jfehlig/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,danwent/libvirt-ovs,elmarco/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,rmarwaha/libvirt,danwent/libvirt-ovs,jeckersb/libvirt,warewolf/libvirt,agx/libvirt,zhlcindy/libvirt-1.1.4-maintain,agx/libvirt,rlaager/libvirt,fabianfreyer/libvirt,bjzhang/libvirt,elmarco/libvirt,danwent/libvirt-ovs