2008-12-30 Carlos Garcia Campos <carlosgc@gnome.org>
* libdocument/ev-file-helpers.c: (ev_tmp_file_unlink):
Show better warning message when temp file cannot be deleted.
svn path=/trunk/; revision=3315
+2008-12-30 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * libdocument/ev-file-helpers.c: (ev_tmp_file_unlink):
+
+ Show better warning message when temp file cannot be deleted.
+
2008-12-30 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-window.c: (image_save_dialog_response_cb):
ev_tmp_file_unlink (GFile *file)
{
gboolean res;
+ GError *error = NULL;
if (!file)
return;
- res = g_file_delete (file, NULL, NULL);
+ res = g_file_delete (file, NULL, &error);
if (!res) {
char *uri;
uri = g_file_get_uri (file);
- g_warning ("Unable to delete temp file %s\n", uri);
+ g_warning ("Unable to delete temp file %s: %s\n", uri, error->message);
g_free (uri);
+ g_error_free (error);
}
}