Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6525:ae684f2e0534 HEAD
Error handling fix
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 01 Oct 2007 18:14:41 +0300 |
parents | 20a5e69e6266 |
children | c4205f6ac88f |
files | src/lib-dict/dict-client.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-dict/dict-client.c Sun Sep 30 23:21:18 2007 +0300 +++ b/src/lib-dict/dict-client.c Mon Oct 01 18:14:41 2007 +0300 @@ -224,8 +224,12 @@ if (line != NULL) return line; } + i_assert(ret < 0); - i_error("read(%s) failed: %m", dict->path); + if (ret == -2) + i_error("read(%s) returned too much data", dict->path); + else + i_error("read(%s) failed: %m", dict->path); return NULL; }