forked from AuroraMiddleware/gtk
places view: Spew less warnings
When running the testsuite with a local gvfs, we get a 'not supported' error here, and the g_warning makes the test fail. Avoid that.
This commit is contained in:
parent
b4da542980
commit
6a4e4a9fe8
@ -1002,7 +1002,8 @@ network_enumeration_finished (GObject *source_object,
|
||||
|
||||
if (error)
|
||||
{
|
||||
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
|
||||
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED) &&
|
||||
!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
|
||||
g_warning ("Failed to fetch network locations: %s", error->message);
|
||||
|
||||
g_clear_error (&error);
|
||||
|
Loading…
Reference in New Issue
Block a user