From d7c8412dc80180274bb9c26ee928f07dedfb42d6 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 15 Feb 2010 05:22:19 +0200 Subject: [PATCH] dsync: Error handling fixes. --HG-- branch : HEAD --- src/dsync/dsync-worker-local.c | 3 ++- src/dsync/dsync-worker.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dsync/dsync-worker-local.c b/src/dsync/dsync-worker-local.c index ff9de9282c..82a6c308f9 100644 --- a/src/dsync/dsync-worker-local.c +++ b/src/dsync/dsync-worker-local.c @@ -738,7 +738,8 @@ static int iter_local_mailbox_open(struct local_dsync_worker_msg_iter *iter) guid = &iter->mailboxes[iter->mailbox_idx]; if (local_mailbox_open(worker, guid, &box) < 0) { - i_error("msg iteration failed: Couldn't open mailbox"); + i_error("msg iteration failed: Couldn't open mailbox %s", + dsync_guid_to_str(guid)); iter->iter.failed = TRUE; return -1; } diff --git a/src/dsync/dsync-worker.c b/src/dsync/dsync-worker.c index 0d3e3f3d06..1ecf2f0e35 100644 --- a/src/dsync/dsync-worker.c +++ b/src/dsync/dsync-worker.c @@ -224,6 +224,8 @@ void dsync_worker_msg_get(struct dsync_worker *worker, if (!worker->failed) worker->v.msg_get(worker, mailbox, uid, callback, context); + else + callback(DSYNC_MSG_GET_RESULT_FAILED, NULL, context); } void dsync_worker_finish(struct dsync_worker *worker, -- 2.47.3