Commit d2e32b97 authored by Bastien Nocera's avatar Bastien Nocera

Show better error when file info query fails

parent e7046d56
Pipeline #214794 passed with stage
in 2 minutes and 40 seconds
...@@ -113,12 +113,14 @@ cheese_thumb_view_idle_append_item (gpointer data) ...@@ -113,12 +113,14 @@ cheese_thumb_view_idle_append_item (gpointer data)
char *mime_type; char *mime_type;
char *uri; char *uri;
char *filename; char *filename;
GError *error = NULL;
info = g_file_query_info (file, "standard::content-type,time::modified", 0, NULL, NULL); info = g_file_query_info (file, "standard::content-type,time::modified", 0, NULL, &error);
if (!info) if (!info)
{ {
g_warning ("Invalid filename\n"); g_warning ("Could not query file info: %s", error->message);
g_error_free (error);
g_slice_free (CheeseThumbViewIdleData, item); g_slice_free (CheeseThumbViewIdleData, item);
return TRUE; return TRUE;
} }
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