dovecot-1.0: Treat unknown errors as temporary errors.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jun 14 21:52:20 EEST 2007
details: http://hg.dovecot.org/dovecot-1.0/rev/1ffe49573721
changeset: 5313:1ffe49573721
user: Timo Sirainen <tss at iki.fi>
date: Thu Jun 14 21:52:16 2007 +0300
description:
Treat unknown errors as temporary errors.
diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
src/lib-storage/index/index-storage.c | 7 ++++++-
diffs (17 lines):
diff -r 0f40f19d2ae4 -r 1ffe49573721 src/lib-storage/index/index-storage.c
--- a/src/lib-storage/index/index-storage.c Thu Jun 14 14:53:47 2007 +0300
+++ b/src/lib-storage/index/index-storage.c Thu Jun 14 21:52:16 2007 +0300
@@ -446,7 +446,12 @@ const char *index_storage_get_last_error
/* We get here only in error situations, so we have to return some
error. If storage->error is NULL, it means we forgot to set it at
some point.. */
- return storage->error != NULL ? storage->error : "Unknown error";
+ if (storage->error != NULL)
+ return storage->error;
+ else {
+ *temporary_error_r = TRUE;
+ return "BUG: Unknown internal error";
+ }
}
void mail_storage_set_index_error(struct index_mailbox *ibox)
More information about the dovecot-cvs
mailing list