[evolution-ews] In case that e_cal_backend_ews_remove_object not called from e-cal-backend, we print the error
- From: Pavel Ocheretny <pocheretny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] In case that e_cal_backend_ews_remove_object not called from e-cal-backend, we print the error
- Date: Wed, 15 Jun 2011 06:58:02 +0000 (UTC)
commit 6892294bee968ff1abf2297d074322a1a445b20a
Author: Pavel Ocheretny <pocheretny src gnome org>
Date: Tue Jun 14 23:09:11 2011 +0300
In case that e_cal_backend_ews_remove_object not called from e-cal-backend, we print the error
src/calendar/e-cal-backend-ews.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 67be61b..9551464 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -855,6 +855,10 @@ ews_cal_remove_object_cb (GObject *object, GAsyncResult *res, gpointer user_data
if (remove_data->context)
e_data_cal_notify_remove (remove_data->cal, remove_data->context, error);
+ else if (error) {
+ g_warning ("Remove object error : %s\n", error->message);
+ g_clear_error (&error);
+ }
g_free (remove_data->item_id.id);
g_free (remove_data->item_id.change_key);
@@ -955,6 +959,10 @@ e_cal_backend_ews_remove_object (ECalBackend *backend, EDataCal *cal, EServerMet
exit:
if (context)
e_data_cal_notify_remove (cal, context, error);
+ else if (error) {
+ g_warning ("Remove object error : %s\n", error->message);
+ g_clear_error (&error);
+ }
}
static icaltimezone * resolve_tzid (const gchar *tzid, gpointer user_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]