Improve error information when there are problems in the local storage
- From: Sergio Villar Senin <svillar igalia com>
- To: tinymail-devel-list gnome org
- Subject: Improve error information when there are problems in the local storage
- Date: Mon, 17 Mar 2008 18:38:20 +0100
Hi,
this patch sets the proper error when the folder summary code is not
capable of storing the summary due to problems in the local storage.
Br
Index: libtinymail-camel/camel-lite/camel/camel-folder-summary.c
===================================================================
--- libtinymail-camel/camel-lite/camel/camel-folder-summary.c (revision 3494)
+++ libtinymail-camel/camel-lite/camel/camel-folder-summary.c (working copy)
@@ -923,7 +923,7 @@
i = errno;
g_unlink(path);
errno = i;
- camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM,
+ camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM_IO_WRITE,
"Error storing the summary");
g_static_rec_mutex_unlock (s->dump_lock);
return -1;
@@ -1024,7 +1024,7 @@
exception:
- camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM,
+ camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM_IO_WRITE,
"Error storing the summary");
i = errno;
fclose (out);
@@ -1064,7 +1064,7 @@
if (fd == -1) {
g_static_rec_mutex_unlock (s->dump_lock);
- camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM,
+ camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM_IO_WRITE,
"Error storing the summary");
return -1;
}
@@ -1075,7 +1075,7 @@
g_unlink(path);
close(fd);
errno = i;
- camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM,
+ camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM_IO_WRITE,
"Error storing the summary");
g_static_rec_mutex_unlock (s->dump_lock);
return -1;
@@ -1147,7 +1147,7 @@
i = errno;
g_unlink(path);
errno = i;
- camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM,
+ camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM_IO_WRITE,
"Error storing the summary");
g_static_mutex_unlock (&global_lock2);
g_static_rec_mutex_unlock (&global_lock);
@@ -1172,7 +1172,7 @@
exception:
- camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM,
+ camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM_IO_WRITE,
"Error storing the summary");
i = errno;
fclose (out);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]