# HG changeset patch # User Timo Sirainen # Date 1102218163 -7200 # Node ID 0e1481357fbb9f01793225d24fc83731b754666b # Parent 00b78082cd507f311dc902d1cf5d8093eb1738d8 Changed assert() to friendly human readable message. diff -r 00b78082cd50 -r 0e1481357fbb src/lib-index/mail-index.c --- a/src/lib-index/mail-index.c Sun Dec 05 04:18:44 2004 +0200 +++ b/src/lib-index/mail-index.c Sun Dec 05 05:42:43 2004 +0200 @@ -1176,8 +1176,12 @@ /* don't even bother to handle dotlocking without mmap being disabled. that combination simply doesn't make any sense */ - i_assert(lock_method != MAIL_INDEX_LOCK_DOTLOCK || - index->mmap_disable); + if (lock_method == MAIL_INDEX_LOCK_DOTLOCK && + !index->mmap_disable) { + i_fatal("lock_method=dotlock and mmap_disable=no " + "combination isn't supported. " + "You don't _really_ want it anyway."); + } ret = mail_index_open_files(index, flags); if (ret <= 0)