changeset 7487:6dfa085a49d6 HEAD

Error message improvements.
author Timo Sirainen <tss@iki.fi>
date Sun, 04 May 2008 21:54:03 +0300
parents 9edaf878bb96
children 9bef11f4faf6
files src/lib-storage/index/mbox/istream-raw-mbox.c src/lib-storage/index/mbox/mbox-mail.c
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/istream-raw-mbox.c	Sun May 04 20:42:51 2008 +0300
+++ b/src/lib-storage/index/mbox/istream-raw-mbox.c	Sun May 04 21:54:03 2008 +0300
@@ -298,7 +298,7 @@
 	    rstream->hdr_offset + new_pos > rstream->mail_size) {
 		/* istream_raw_mbox_set_next_offset() used invalid
 		   cached next_offset? */
-		i_error("Unexpectedly lost From-line at %"PRIuUOFF_T,
+		i_error("Next message unexpectedly lost from %"PRIuUOFF_T,
 			rstream->hdr_offset + rstream->mail_size);
 		rstream->eof = TRUE;
 		rstream->corrupted = TRUE;
--- a/src/lib-storage/index/mbox/mbox-mail.c	Sun May 04 20:42:51 2008 +0300
+++ b/src/lib-storage/index/mbox/mbox-mail.c	Sun May 04 21:54:03 2008 +0300
@@ -248,8 +248,9 @@
 		if (mbox_mail_seek(mail) < 0)
 			return -1;
 		if (!mbox_mail_get_next_offset(mail, &next_offset)) {
-			i_warning("mbox %s: Can't find next message offset",
-				  mbox->path);
+			i_warning("mbox %s: Can't find next message offset "
+				  "for uid=%u",
+				  mbox->path, mail->mail.mail.uid);
 			next_offset = (uoff_t)-1;
 		}
 	}