Error code missing



Hi,

I found a place where the wrong error code was set. The
camel_imap_message_cache_insert call was failing (in
camel_imap_folder_fetch_data)due to a system IO error but the camel
exception was not taking the right error code in that case. Find the
patch attached.

Br
Index: libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-folder.c
===================================================================
--- libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-folder.c	(revision 3305)
+++ libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-folder.c	(working copy)
@@ -5435,6 +5435,7 @@
 
 	if (stream == NULL)
 	{
+		ex_id = CAMEL_EXCEPTION_SYSTEM_IO_WRITE;
 		errmessage = g_strdup_printf (_("Write to cache failed: %s"), g_strerror (errno));
 		goto errorhander;
 	}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]