[libvirt] [libvirt-php 1/2] Introduce set_error() function and fix error handling/formatting