aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-07-10 02:40:56 +0800
committerPeter Williams <peterw@src.gnome.org>2001-07-10 02:40:56 +0800
commit50813793c3393e70f5b3c46a7541c26d0e9d9c14 (patch)
treecf791edeeb09940dfd9e82e9487c34e9de17891a /mail/mail-ops.c
parentd65e0ecb7eef41153f53e40d2c3cde44a4f3327d (diff)
downloadgsoc2013-evolution-50813793c3393e70f5b3c46a7541c26d0e9d9c14.tar.gz
gsoc2013-evolution-50813793c3393e70f5b3c46a7541c26d0e9d9c14.tar.zst
gsoc2013-evolution-50813793c3393e70f5b3c46a7541c26d0e9d9c14.zip
Check for an exception and print it. Call done anyway.
2001-07-09 Peter Williams <peterw@ximian.com> * mail-ops.c (get_folderinfo_got): Check for an exception and print it. Call done anyway. (do_update_subfolders): Check for NULL info. svn path=/trunk/; revision=10924
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);
}