[evolution-data-server] CamelImapWrapper: Use GError instead of errno.



commit acc834c159416ba085106e55c198a08396fc9ee3
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Jul 5 07:07:23 2011 -0400

    CamelImapWrapper: Use GError instead of errno.

 camel/providers/imap/camel-imap-wrapper.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/camel/providers/imap/camel-imap-wrapper.c b/camel/providers/imap/camel-imap-wrapper.c
index aaf30bb..6975e74 100644
--- a/camel/providers/imap/camel-imap-wrapper.c
+++ b/camel/providers/imap/camel-imap-wrapper.c
@@ -99,20 +99,10 @@ imap_wrapper_write_to_stream_sync (CamelDataWrapper *data_wrapper,
 
 		datastream = camel_imap_folder_fetch_data (
 			imap_wrapper->folder, imap_wrapper->uid,
-			imap_wrapper->part_spec, FALSE, cancellable, NULL);
+			imap_wrapper->part_spec, FALSE, cancellable, error);
 
 		if (!datastream) {
 			CAMEL_IMAP_WRAPPER_UNLOCK (imap_wrapper, lock);
-#ifdef ENETUNREACH
-			errno = ENETUNREACH;
-#else
-/* FIXME[disk-summary] what errno to use if no ENETUNREACH */
-			errno = EINVAL;
-#endif
-			g_set_error (
-				error, G_IO_ERROR,
-				g_io_error_from_errno (errno),
-				"%s", g_strerror (errno));
 			return -1;
 		}
 



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