From: Timo Sirainen Date: Wed, 8 Mar 2017 15:07:37 +0000 (-0500) Subject: imap: If unhibernation fails due to a mailbox error, log the mailbox name. X-Git-Tag: 2.3.0.rc1~1963 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f2cb2e5b258280af90ae99b6d07dfa44109e5be;p=thirdparty%2Fdovecot%2Fcore.git imap: If unhibernation fails due to a mailbox error, log the mailbox name. --- diff --git a/src/imap/imap-state.c b/src/imap/imap-state.c index bc78053fed..0345dce256 100644 --- a/src/imap/imap-state.c +++ b/src/imap/imap-state.c @@ -698,8 +698,10 @@ import_state_mailbox(struct client *client, const unsigned char *data, i_assert(*error_r != NULL); return ret; } - if (import_state_mailbox_open(client, &state, error_r) < 0) + if (import_state_mailbox_open(client, &state, error_r) < 0) { + *error_r = t_strdup_printf("Mailbox %s: %s", state.vname, *error_r); return -1; + } return ret; }