Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49fae858 authored by Ricki Hirner's avatar Ricki Hirner
Browse files

Notify on invalid events, too

parent 3addab5b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -160,7 +160,7 @@ class CalendarSyncManager(
            events = Event.fromReader(reader)
        } catch (e: InvalidCalendarException) {
            Logger.log.log(Level.SEVERE, "Received invalid iCalendar, ignoring", e)
            // TODO show notification
            notifyInvalidResource(e, fileName)
            return
        }

+0 −1
Original line number Diff line number Diff line
@@ -355,7 +355,6 @@ class ContactsSyncManager(
    private fun processVCard(fileName: String, eTag: String, reader: Reader, downloader: Contact.Downloader) {
        Logger.log.info("Processing CardDAV resource $fileName")

        // TODO catch and show notification on CannotParseException
        val contacts = try {
            Contact.fromReader(reader, downloader)
        } catch (e: CannotParseException) {