[dovecot-cvs] dovecot/src/lib-storage mail-storage.c,1.19,1.20

cras at procontrol.fi cras at procontrol.fi
Mon Apr 26 23:48:06 EEST 2004


Update of /home/cvs/dovecot/src/lib-storage
In directory talvi:/tmp/cvs-serv13906

Modified Files:
	mail-storage.c 
Log Message:
"Internal error" message changed.



Index: mail-storage.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/mail-storage.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- mail-storage.c	20 Oct 2003 04:15:17 -0000	1.19
+++ mail-storage.c	26 Apr 2004 20:48:04 -0000	1.20
@@ -9,7 +9,9 @@
 #include <ctype.h>
 
 /* Message to show to users when critical error occurs */
-#define CRITICAL_MSG "Internal error [%Y-%m-%d %H:%M:%S]"
+#define CRITICAL_MSG \
+	"Internal error occured. Error report written to server log."
+#define CRITICAL_MSG_STAMP CRITICAL_MSG " [%Y-%m-%d %H:%M:%S]"
 
 struct mail_storage_list {
 	struct mail_storage_list *next;
@@ -234,8 +236,9 @@
 	tm = localtime(&ioloop_time);
 
 	i_free(storage->error);
-	storage->error = strftime(str, sizeof(str), CRITICAL_MSG, tm) > 0 ?
-		i_strdup(str) : i_strdup("Internal error");
+	storage->error =
+		strftime(str, sizeof(str), CRITICAL_MSG_STAMP, tm) > 0 ?
+		i_strdup(str) : i_strdup(CRITICAL_MSG);
 	storage->syntax_error = FALSE;
 }
 



More information about the dovecot-cvs mailing list