Re: [PATCH 09/16] GlibGerror can be raised by virt-sandbox-service, need to catch and write to stderr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 02, 2013 at 06:11:25PM -0400, Dan Walsh wrote:

Again, bad subject line which is too long.

> Signed-off-by: Dan Walsh <dwalsh@xxxxxxxxxx>
> ---
>  bin/virt-sandbox-service | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/bin/virt-sandbox-service b/bin/virt-sandbox-service
> index b816933..ca472f5 100755
> --- a/bin/virt-sandbox-service
> +++ b/bin/virt-sandbox-service
> @@ -1074,3 +1074,7 @@ if __name__ == '__main__':
>          sys.stderr.write("%s: %s\n" % (sys.argv[0], e))
>          sys.stderr.flush()
>          sys.exit(1)
> +    except GLib.GError, e:
> +        sys.stderr.write("%s: %s\n" % (sys.argv[0], e))
> +        sys.stderr.flush()
> +        sys.exit(1)

ACK if the commit message is fixed.


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]