changeset 6624:91a003d00b4e HEAD

If syncing internal dummy mbox fails, show the error message.
author Timo Sirainen <tss@iki.fi>
date Sat, 27 Oct 2007 19:06:33 +0300
parents dde1980eccae
children f40f4e1a0a3c
files src/deliver/deliver.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/deliver/deliver.c	Sat Oct 27 19:03:17 2007 +0300
+++ b/src/deliver/deliver.c	Sat Oct 27 19:06:33 2007 +0300
@@ -866,8 +866,12 @@
 			   MAILBOX_OPEN_MBOX_ONE_MSG_ONLY);
 	if (box == NULL)
 		i_fatal("Can't open delivery mail as mbox");
-        if (sync_quick(box) < 0)
-		i_fatal("Can't sync delivery mail");
+	if (sync_quick(box) < 0) {
+		enum mail_error error;
+
+		i_fatal("Can't sync delivery mail: %s",
+			mail_storage_get_last_error(storage, &error));
+	}
 
 	t = mailbox_transaction_begin(box, 0);
 	mail = mail_alloc(t, 0, NULL);