diff options
-rw-r--r-- | camel/ChangeLog | 9 | ||||
-rw-r--r-- | camel/providers/imap/camel-imap-store.c | 5 |
2 files changed, 10 insertions, 4 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 700f9a7d65..c73b53684e 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,12 @@ +2004-05-27 Jeffrey Stedfast <fejj@novell.com> + + Fixes bug #59191. + + * providers/imap/camel-imap-store.c (camel_imap_store_readline): + Don't override the exception with g_strerror() since presumably + camel_imap_store_is_connected() will have set that for us (and + will have a much more accurate exception anyway). + 2004-05-26 Dan Winship <danw@novell.com> * camel-store.c (camel_store_get_trash): If the store is not a diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c index 9401c559fb..af18d8043c 100644 --- a/camel/providers/imap/camel-imap-store.c +++ b/camel/providers/imap/camel-imap-store.c @@ -3177,11 +3177,8 @@ camel_imap_store_readline (CamelImapStore *store, char **dest, CamelException *e * meaning if we reconnect, so always set an exception. */ - if (!camel_imap_store_connected (store, ex)) { - camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_NOT_CONNECTED, - g_strerror (errno)); + if (!camel_imap_store_connected (store, ex)) return -1; - } stream = CAMEL_STREAM_BUFFER (store->istream); |