# HG changeset patch # User Timo Sirainen # Date 1215614585 -19800 # Node ID e069e4c221e1c8724594cf8db677bedd4baa0c41 # Parent a02dd752ef436842d1d0d11ee682612c58043a3d dict-proxy: Fix error message if remote disconnects. diff -r a02dd752ef43 -r e069e4c221e1 src/lib-dict/dict-client.c --- 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;