No friendly error message when an ICS file calendar is an invalid ICS
Affected version
Gnome Calendar version 43.1, NixOS - unstable channel.
Bug summary
Since importing an ICS doesn't work via a URL, (see #645 ), I'm downloading my ICS files manually. Ever since the update to version 43 (from version 42 I think), I get this error when I launch gnome-calendar
from the CLI:
GcalManager-WARNING **: 21:51:34.221: Failed to open/connect to calendar: Unable to connect to “<CALENDAR_NAME>”: Cannot open calendar: Cannot parse ISC file “<CALENDAR_PATH>.ics”
That line repeats itself for each of the calendars I have registered and as expected, the calendars themselves don't show up.
EDIT: The calendars when I initially reported the issue where probably broken, and I haven't noticed so. This bug report is about a missing GUI error message, saying to the user that their calendar's ICS files are broken.
Steps to reproduce
You can reproduce this error if you'd download (again, manually) a URL such as this and try to add it to the calendar reproduces the error.
Download a corrupted ICS file, and try to import it.
Relevant logs, screenshots, screencasts etc.
Adding another ICS file via the "calendars" interface produces this error:
And the log says:
(gnome-calendar:163388): Gtk-CRITICAL **: 15:18:07.359: gtk_file_chooser_set_file: assertion 'G_IS_FILE (file)' failed