dovecot-2.2: lib-mail: Improved istream-attachment-extractor err...

dovecot at dovecot.org dovecot at dovecot.org
Sat May 9 16:33:16 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/024fb73d7d62
changeset: 18613:024fb73d7d62
user:      Timo Sirainen <tss at iki.fi>
date:      Sat May 09 19:31:17 2015 +0300
description:
lib-mail: Improved istream-attachment-extractor error logging.

diffstat:

 src/lib-mail/istream-attachment-extractor.c |  14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diffs (34 lines):

diff -r d547eee8a8c7 -r 024fb73d7d62 src/lib-mail/istream-attachment-extractor.c
--- a/src/lib-mail/istream-attachment-extractor.c	Sat May 09 19:31:05 2015 +0300
+++ b/src/lib-mail/istream-attachment-extractor.c	Sat May 09 19:31:17 2015 +0300
@@ -392,13 +392,14 @@
 	if (ret != -1) {
 		i_assert(failed);
 	} else if (base64_input->stream_errno != 0) {
-		i_error("istream-attachment: read(%s) failed: %m",
-			i_stream_get_name(base64_input));
+		i_error("istream-attachment: read(%s) failed: %s",
+			i_stream_get_name(base64_input),
+			i_stream_get_error(base64_input));
 		failed = TRUE;
 	}
 	if (o_stream_nfinish(output) < 0) {
-		i_error("istream-attachment: write(%s) failed: %m",
-			o_stream_get_name(output));
+		i_error("istream-attachment: write(%s) failed: %s",
+			o_stream_get_name(output), o_stream_get_error(output));
 		failed = TRUE;
 	}
 
@@ -415,8 +416,9 @@
 		}
 		i_assert(ret == -1);
 		if (input->stream_errno != 0) {
-			i_error("istream-attachment: read(%s) failed: %m",
-				i_stream_get_name(input));
+			i_error("istream-attachment: read(%s) failed: %s",
+				i_stream_get_name(input),
+				i_stream_get_error(input));
 			failed = TRUE;
 		}
 	}


More information about the dovecot-cvs mailing list