Commit d045e367 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

thumbnailer: Always print errors from gs_file_read_noatime()

https://bugzilla.gnome.org/show_bug.cgi?id=699252
parent 336e63c8
......@@ -381,10 +381,8 @@ _gdk_pixbuf_new_from_uri_at_scale (const char *uri,
if (input_stream == NULL) {
input_stream = gs_file_read_noatime (file, NULL, &error);
if (input_stream == NULL) {
if (error != NULL) {
g_warning ("Unable to create an input stream for %s: %s", uri, error->message);
g_clear_error (&error);
}
g_warning ("Unable to create an input stream for %s: %s", uri, error->message);
g_clear_error (&error);
g_object_unref (file);
return NULL;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment