From: Timo Sirainen Date: Mon, 26 Apr 2004 20:48:04 +0000 (+0300) Subject: "Internal error" message changed. X-Git-Tag: 1.1.alpha1~4194 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d35cb1b97d072431779857e68b096e27fca57cc6;p=thirdparty%2Fdovecot%2Fcore.git "Internal error" message changed. --HG-- branch : HEAD --- diff --git a/src/lib-storage/mail-storage.c b/src/lib-storage/mail-storage.c index b95655810b..23df492ce9 100644 --- a/src/lib-storage/mail-storage.c +++ b/src/lib-storage/mail-storage.c @@ -9,7 +9,9 @@ #include /* 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 @@ void mail_storage_set_internal_error(struct mail_storage *storage) 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; }