From 1f0c08000927c7ce4f7c331f667bb1d24f6a9601 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 29 Jun 2009 12:31:36 +0200 Subject: [PATCH] Bug #327285 - Word "Success" in error message for failed action --- camel/providers/imap/camel-imap-store.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c index d89a4a8..e89036f 100644 --- a/camel/providers/imap/camel-imap-store.c +++ b/camel/providers/imap/camel-imap-store.c @@ -3050,6 +3050,8 @@ camel_imap_store_readline (CamelImapStore *store, gchar **dest, CamelException * if (nread <= 0) { if (errno == EINTR) camel_exception_set (ex, CAMEL_EXCEPTION_USER_CANCEL, _("Operation cancelled")); + else if (errno == 0) + camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, _("Server unexpectedly disconnected")); else camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, _("Server unexpectedly disconnected: %s"), -- 2.7.4