dovecot-2.2: doveadm: If mailbox list iteration fails, log the e...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jan 19 20:26:20 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/322afa8ca547
changeset: 18173:322afa8ca547
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jan 19 22:11:29 2015 +0200
description:
doveadm: If mailbox list iteration fails, log the error reason.

diffstat:

 src/doveadm/doveadm-mail-index.c        |  3 ++-
 src/doveadm/doveadm-mail.c              |  3 ++-
 src/doveadm/doveadm-mailbox-list-iter.c |  3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

diffs (39 lines):

diff -r fb2549cdf316 -r 322afa8ca547 src/doveadm/doveadm-mail-index.c
--- a/src/doveadm/doveadm-mail-index.c	Mon Jan 19 22:10:17 2015 +0200
+++ b/src/doveadm/doveadm-mail-index.c	Mon Jan 19 22:11:29 2015 +0200
@@ -192,7 +192,8 @@
 		} T_END;
 	}
 	if (mailbox_list_iter_deinit(&iter) < 0) {
-		i_error("Listing mailboxes failed");
+		i_error("Listing mailboxes failed: %s",
+			mailbox_list_get_last_error(user->namespaces->list, NULL));
 		doveadm_mail_failed_error(_ctx, MAIL_ERROR_TEMP);
 		ret = -1;
 	}
diff -r fb2549cdf316 -r 322afa8ca547 src/doveadm/doveadm-mail.c
--- a/src/doveadm/doveadm-mail.c	Mon Jan 19 22:10:17 2015 +0200
+++ b/src/doveadm/doveadm-mail.c	Mon Jan 19 22:11:29 2015 +0200
@@ -241,7 +241,8 @@
 		} T_END;
 	}
 	if (mailbox_list_iter_deinit(&iter) < 0) {
-		i_error("Listing mailboxes failed");
+		i_error("Listing mailboxes failed: %s",
+			mailbox_list_get_last_error(user->namespaces->list, NULL));
 		ret = -1;
 	}
 	return ret;
diff -r fb2549cdf316 -r 322afa8ca547 src/doveadm/doveadm-mailbox-list-iter.c
--- a/src/doveadm/doveadm-mailbox-list-iter.c	Mon Jan 19 22:10:17 2015 +0200
+++ b/src/doveadm/doveadm-mailbox-list-iter.c	Mon Jan 19 22:11:29 2015 +0200
@@ -150,7 +150,8 @@
 	if (iter->iter == NULL)
 		ret = 0;
 	else if ((ret = mailbox_list_iter_deinit(&iter->iter)) < 0) {
-		i_error("Listing mailboxes failed");
+		i_error("Listing mailboxes failed: %s",
+			mailbox_list_get_last_error(iter->user->namespaces->list, NULL));
 		doveadm_mail_failed_error(iter->ctx, MAIL_ERROR_TEMP);
 	}
 	array_free(&iter->patterns);


More information about the dovecot-cvs mailing list