Commit b2ad055b authored by Carlos Garcia Campos's avatar Carlos Garcia Campos Committed by Carlos Garcia Campos

Show better warning message when temp file cannot be deleted.

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
parent ee610189
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):
......
......@@ -169,17 +169,19 @@ void
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);
}
}
......
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