diff src/lib-storage/index/mbox/mbox-save.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 1b34ec11fff8
children a946ce1f09b7
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-save.c	Thu Aug 22 17:26:17 2002 +0300
+++ b/src/lib-storage/index/mbox/mbox-save.c	Thu Aug 22 17:50:16 2002 +0300
@@ -29,8 +29,8 @@
 	/* append the data into mbox file */
 	fd = open(ibox->index->mbox_path, O_RDWR | O_CREAT);
 	if (fd == -1) {
-		mail_storage_set_error(box->storage, "Can't open mbox file "
-				       "%s: %m", ibox->index->mbox_path);
+		mail_storage_set_critical(box->storage, "Can't open mbox file "
+					  "%s: %m", ibox->index->mbox_path);
 		return FALSE;
 	}
 
@@ -43,8 +43,9 @@
 
 	pos = lseek(fd, 0, SEEK_END);
 	if (pos == -1) {
-		mail_storage_set_error(box->storage, "lseek() failed for mbox "
-				       "file %s: %m", ibox->index->mbox_path);
+		mail_storage_set_critical(box->storage,
+					  "lseek() failed for mbox file %s: %m",
+					  ibox->index->mbox_path);
 		failed = TRUE;
 	}