Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7988:e069e4c221e1 HEAD
dict-proxy: Fix error message if remote disconnects.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 09 Jul 2008 20:13:05 +0530 |
parents | a02dd752ef43 |
children | 9369c0190ef0 |
files | src/lib-dict/dict-client.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-dict/dict-client.c Wed Jul 09 19:35:41 2008 +0530 +++ b/src/lib-dict/dict-client.c Wed Jul 09 20:13:05 2008 +0530 @@ -231,6 +231,8 @@ if (ret == -2) i_error("read(%s) returned too much data", dict->path); + else if (dict->input->stream_errno == 0) + i_error("read(%s) failed: Remote disconnected", dict->path); else i_error("read(%s) failed: %m", dict->path); return NULL;