Mercurial > dovecot > core-2.2
diff src/lib-storage/index/index-storage.c @ 13:bb294faf7379 HEAD
"Critical errors" aren't displayed to users anymore, ie. anything that is
not a predefined human readable error message is written into log file and
user gets only "Internal error [timestamp]".
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 22 Aug 2002 17:50:16 +0300 |
parents | 82b7de533f98 |
children | 306c20092a96 |
line wrap: on
line diff
--- a/src/lib-storage/index/index-storage.c Thu Aug 22 17:26:17 2002 +0300 +++ b/src/lib-storage/index/index-storage.c Thu Aug 22 17:50:16 2002 +0300 @@ -10,17 +10,13 @@ { IndexMailbox *ibox; FlagsFile *flagsfile; - const char *path, *error; + const char *path; i_assert(name != NULL); /* open the index first */ if (!index->open_or_create(index, !readonly)) { - error = index->get_last_error(index); - if (error == NULL) - error = "(maildir_open)"; - mail_storage_set_error(storage, "%s", error); - + mail_storage_set_internal_error(storage); index->free(index); return NULL; } @@ -60,15 +56,9 @@ int mail_storage_set_index_error(IndexMailbox *ibox) { - const char *error; - - error = ibox->index->get_last_error(ibox->index); - if (error == NULL) - error = "(no error message)"; - ibox->box.inconsistent = ibox->index->is_inconsistency_error(ibox->index); - mail_storage_set_error(ibox->box.storage, "%s", error); + mail_storage_set_internal_error(ibox->box.storage); return FALSE; }