plugins/caldav: make discovery failures non-fatal

Closes: https://todo.sr.ht/~sircmpwn/koushin/64
This commit is contained in:
Simon Ser 2020-02-19 16:35:47 +01:00
parent bfb2d8a4de
commit be3c069f5d
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -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 {