[evolution-data-server] CalDAV: Also rename NoSuchCal to ObjectNotFound in caldav_server_put_object()



commit c3644c5300733e8332152b3fbf8d8dabf0724deb
Author: Milan Crha <mcrha redhat com>
Date:   Fri May 11 14:33:44 2012 +0200

    CalDAV: Also rename NoSuchCal to ObjectNotFound in caldav_server_put_object()

 calendar/backends/caldav/e-cal-backend-caldav.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/calendar/backends/caldav/e-cal-backend-caldav.c b/calendar/backends/caldav/e-cal-backend-caldav.c
index aa0d142..4939fd6 100644
--- a/calendar/backends/caldav/e-cal-backend-caldav.c
+++ b/calendar/backends/caldav/e-cal-backend-caldav.c
@@ -1680,7 +1680,7 @@ caldav_server_put_object (ECalBackendCalDAV *cbdav,
 		}
 
 		if (!caldav_server_get_object (cbdav, object, &local_error)) {
-			if (g_error_matches (local_error, E_DATA_CAL_ERROR, NoSuchCal)) {
+			if (g_error_matches (local_error, E_DATA_CAL_ERROR, ObjectNotFound)) {
 				gchar *file;
 
 				/* OK, the event was properly created, but cannot be found on the place
@@ -1694,7 +1694,7 @@ caldav_server_put_object (ECalBackendCalDAV *cbdav,
 					object->href = file;
 
 					if (!caldav_server_get_object (cbdav, object, &local_error)) {
-						if (g_error_matches (local_error, E_DATA_CAL_ERROR, NoSuchCal)) {
+						if (g_error_matches (local_error, E_DATA_CAL_ERROR, ObjectNotFound)) {
 							g_clear_error (&local_error);
 
 							/* not sure what can happen, but do not need to guess for ever,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]