CalDAV: Also rename NoSuchCal to ObjectNotFound in caldav_server_put_object()
authorMilan Crha <mcrha@redhat.com>
Fri, 11 May 2012 12:33:44 +0000 (14:33 +0200)
committerMilan Crha <mcrha@redhat.com>
Fri, 11 May 2012 12:34:44 +0000 (14:34 +0200)
calendar/backends/caldav/e-cal-backend-caldav.c

index aa0d142..4939fd6 100644 (file)
@@ -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,