From be3c069f5d909125124510816748b1365a505004 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 19 Feb 2020 16:35:47 +0100 Subject: [PATCH] plugins/caldav: make discovery failures non-fatal Closes: https://todo.sr.ht/~sircmpwn/koushin/64 --- plugins/caldav/plugin.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/caldav/plugin.go b/plugins/caldav/plugin.go index 1915646..27c5663 100644 --- a/plugins/caldav/plugin.go +++ b/plugins/caldav/plugin.go @@ -41,7 +41,10 @@ func newPlugin(srv *koushin.Server) (koushin.Plugin, error) { u.Scheme = "http" } if u.Scheme == "" { - return nil, fmt.Errorf("caldav: discovery not yet implemented") // TODO + // TODO + err := fmt.Errorf("discovery not yet implemented") + srv.Logger().Printf("caldav: failed to discover CalDAV server: %v", err) + return nil, nil } if err := sanityCheckURL(u); err != nil {