dovecot-2.2: lib-storage: Improve error message logging when att...

dovecot at dovecot.org dovecot at dovecot.org
Sun Sep 22 04:42:07 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/38382fa18285
changeset: 16814:38382fa18285
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Sep 22 04:40:02 2013 +0300
description:
lib-storage: Improve error message logging when attachment writing fails

diffstat:

 src/lib-storage/index/index-attachment.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r a919c43ab91b -r 38382fa18285 src/lib-storage/index/index-attachment.c
--- a/src/lib-storage/index/index-attachment.c	Sun Sep 22 04:39:35 2013 +0300
+++ b/src/lib-storage/index/index-attachment.c	Sun Sep 22 04:40:02 2013 +0300
@@ -131,7 +131,9 @@
 	if (ret < 0)
 		fs_write_stream_abort(attach->cur_file, &output);
 	else if (fs_write_stream_finish(attach->cur_file, &output) < 0) {
-		*error_r = t_strdup(fs_file_last_error(attach->cur_file));
+		*error_r = t_strdup_printf("Couldn't create attachment %s: %s",
+					   fs_file_path(attach->cur_file),
+					   fs_file_last_error(attach->cur_file));
 		ret = -1;
 	}
 	fs_file_deinit(&attach->cur_file);


More information about the dovecot-cvs mailing list