www/static
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hauke Mehrtens 4545852327 Report errors while loading the calendar
The response of the fetch went to the parser without ever looking at it. When
the calendar could not be loaded the error page of the web server was parsed as
a calendar, which threw inside a promise nobody was waiting on. The result was
an empty table, an unhandled rejection in the console and an error message
about broken calendar syntax that says nothing about the actual problem, a
calendar that is not there.

Refuse a response that is not ok, naming the status, and log failures in the
chain, like the calendar page already does.

  before: Uncaught (in promise) Error: invalid line (no token ";" or ":")
                                       "<html>404 Not Found</html>"
  after:  Fehler beim Laden der Termine:
          Error: /calendars/all.ics: 404 Not Found

The table stays empty either way, there is nothing to show without a calendar.

Fixes: c28f04c6e8 ("switch to ics files; make calendars work; fix some minor issues")
Assisted-by: Claude:claude-opus-5
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-08-23 01:07:25 +02:00
..
css fix naming conflict to restore old gallery with thumbnails 2025-03-10 17:40:10 +01:00
img update tdoh post 2025-03-11 23:10:10 +01:00
js Report errors while loading the calendar 2026-08-23 01:07:25 +02:00
apple-touch-icon.png even better favicons 2025-02-28 00:08:41 +01:00
favicon-96x96.png even better favicons 2025-02-28 00:08:41 +01:00
favicon.ico even better favicons 2025-02-28 00:08:41 +01:00
favicon.png even better favicons 2025-02-28 00:08:41 +01:00
favicon.svg even better favicons 2025-02-28 00:08:41 +01:00
site.webmanifest even better favicons 2025-02-28 00:08:41 +01:00
web-app-manifest-192x192.png even better favicons 2025-02-28 00:08:41 +01:00
web-app-manifest-512x512.png even better favicons 2025-02-28 00:08:41 +01:00