aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-remote-store.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-11-29 05:27:16 +0800
committerDan Winship <danw@src.gnome.org>2000-11-29 05:27:16 +0800
commit06a83735415c1cd4e037839ce352e7d2d074be37 (patch)
tree74374d0e33b0fc226068f8b15137bdf9ada12031 /camel/camel-remote-store.c
parentea1f540203946579d6f8866d5b3c32bd7a62f54a (diff)
downloadgsoc2013-evolution-06a83735415c1cd4e037839ce352e7d2d074be37.tar
gsoc2013-evolution-06a83735415c1cd4e037839ce352e7d2d074be37.tar.gz
gsoc2013-evolution-06a83735415c1cd4e037839ce352e7d2d074be37.tar.bz2
gsoc2013-evolution-06a83735415c1cd4e037839ce352e7d2d074be37.tar.lz
gsoc2013-evolution-06a83735415c1cd4e037839ce352e7d2d074be37.tar.xz
gsoc2013-evolution-06a83735415c1cd4e037839ce352e7d2d074be37.tar.zst
gsoc2013-evolution-06a83735415c1cd4e037839ce352e7d2d074be37.zip
Don't set exception to g_strerror (errno) when nread == 0, because it
* camel-remote-store.c (remote_recv_line): Don't set exception to g_strerror (errno) when nread == 0, because it won't have been set. svn path=/trunk/; revision=6702
Diffstat (limited to 'camel/camel-remote-store.c')
-rw-r--r--camel/camel-remote-store.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/camel/camel-remote-store.c b/camel/camel-remote-store.c
index 7c64ab6a67..c69ba3591e 100644
--- a/camel/camel-remote-store.c
+++ b/camel/camel-remote-store.c
@@ -448,7 +448,8 @@ remote_recv_line (CamelRemoteStore *store, char **dest, CamelException *ex)
g_free (ret);
ret = NULL;
camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE,
- g_strerror (errno));
+ nread ? g_strerror (errno) :
+ _("Server disconnected."));
camel_service_disconnect (CAMEL_SERVICE (store), FALSE, NULL);
return -1;