dovecot-2.2: fts_parser: Minor error logging improvement

dovecot at dovecot.org dovecot at dovecot.org
Sat Jan 5 01:14:34 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/a9e7f9333f57
changeset: 15530:a9e7f9333f57
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 27 10:48:11 2012 +0200
description:
fts_parser: Minor error logging improvement

diffstat:

 src/plugins/fts/fts-parser-script.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 8770940057b9 -r a9e7f9333f57 src/plugins/fts/fts-parser-script.c
--- a/src/plugins/fts/fts-parser-script.c	Tue Nov 27 10:39:26 2012 +0200
+++ b/src/plugins/fts/fts-parser-script.c	Tue Nov 27 10:48:11 2012 +0200
@@ -99,10 +99,13 @@
 		content->content_type = args[0];
 		content->extensions = (const void *)(args+1);
 	}
+	if (!eof_seen) {
+		if (input->v_offset == 0)
+			i_error("parser script didn't send any data");
+		else
+			i_error("parser script didn't send empty EOF line");
+	}
 	i_stream_destroy(&input);
-
-	if (!eof_seen)
-		i_error("parser script didn't send empty EOF line");
 	return 0;
 }
 


More information about the dovecot-cvs mailing list