aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 5725e27980..09e4c51c06 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -384,7 +384,7 @@ do_update_subfolders (CamelStore *store, CamelFolderInfo *info, void *data)
{
struct _update_info *uinfo = data;
- if (uinfo) {
+ if (uinfo && info) {
do_update_subfolders_rec(store, info, uinfo->storage, "");
}
@@ -1035,6 +1035,13 @@ static void get_folderinfo_got(struct _mail_msg *mm)
{
struct _get_folderinfo_msg *m = (struct _get_folderinfo_msg *)mm;
+ if (camel_exception_is_set (&(mm->ex)))
+ g_warning ("Error getting folder info from store at %s: %s",
+ camel_service_get_url (CAMEL_SERVICE (m->store)),
+ camel_exception_get_description (&(mm->ex)));
+
+ /* 'done' is probably guaranteed to fail, but... */
+
if (m->done)
m->done(m->store, m->info, m->data);
}