diff options
author | Simon Ser <contact@emersion.fr> | 2020-02-19 16:35:47 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-02-19 16:35:47 +0100 |
commit | be3c069f5d909125124510816748b1365a505004 (patch) | |
tree | cdb0e2cc0bf8f5749bbfaec7158682eee287d3cc /plugins/caldav | |
parent | bfb2d8a4de34ce315a7ca5fc62d2ce4c6630e939 (diff) | |
download | alps-be3c069f5d909125124510816748b1365a505004.tar.gz alps-be3c069f5d909125124510816748b1365a505004.zip |
plugins/caldav: make discovery failures non-fatal
Closes: https://todo.sr.ht/~sircmpwn/koushin/64
Diffstat (limited to 'plugins/caldav')
-rw-r--r-- | plugins/caldav/plugin.go | 5 |
1 files changed, 4 insertions, 1 deletions
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 { |