[virt-tools-list] [virt-viewer PATCH] Show errors generated by connection dialog
Christophe de Dinechin
cdupontd at redhat.com
Wed Feb 8 21:48:40 UTC 2017
> On 8 Feb 2017, at 20:34, Eduardo Lima (Etrunko) <etrunko at redhat.com> wrote:
>
> Patch looks good, I personally also like to check for error->message
> before dereferencing it, but I don't really know what others think about it.
I had wondered about that, but I checked, and apparently, all other places that look at error->message only check error != NULL, except for a single exceptions in spice-widget… But you made me doubt, so I checked. The examples in https://developer.gnome.org/glib/stable/glib-Error-Reporting.html don’t check, and it seems like the only valid way to get a GError is with some “new” that has message as input arguments.
Christophe
More information about the virt-tools-list
mailing list