diff src/imap/imap-fetch-body.c @ 16776:c140de1b506b

imap: If FETCH fails, log the stream's error string instead of errno.
author Timo Sirainen <tss@iki.fi>
date Fri, 20 Sep 2013 00:22:15 +0300
parents be26ae8a9fca
children add8c00fb3cc
line wrap: on
line diff
--- a/src/imap/imap-fetch-body.c	Fri Sep 20 00:20:19 2013 +0300
+++ b/src/imap/imap-fetch-body.c	Fri Sep 20 00:22:15 2013 +0300
@@ -33,8 +33,9 @@
 
 	errno = state->cur_input->stream_errno;
 	mail_storage_set_critical(state->cur_mail->box->storage,
-		"read(%s) failed: %m (FETCH %s for mailbox %s UID %u)",
+		"read(%s) failed: %s (FETCH %s for mailbox %s UID %u)",
 		i_stream_get_name(state->cur_input),
+		i_stream_get_error(state->cur_input),
 		state->cur_human_name,
 		mailbox_get_vname(state->cur_mail->box), state->cur_mail->uid);
 }