Skip to content

Commit

Permalink
lib-storage: mailbox_set_index_error() - Set internal error string to…
Browse files Browse the repository at this point in the history
… index's error
  • Loading branch information
sirainen authored and villesavolainen committed Sep 12, 2017
1 parent 22e6232 commit 94811d8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib-storage/mail-storage.c
Expand Up @@ -604,8 +604,13 @@ void mailbox_set_index_error(struct mailbox *box)
{
if (mail_index_is_deleted(box->index))
mailbox_set_deleted(box);
else
else {
mail_storage_set_internal_error(box->storage);
/* use the lib-index's error as our internal error string */
box->storage->last_internal_error =
i_strdup(mail_index_get_error_message(box->index));
box->storage->last_error_is_internal = TRUE;
}
mail_index_reset_error(box->index);
}

Expand Down

0 comments on commit 94811d8

Please sign in to comment.