plugins/caldav: make discovery failures non-fatal
Closes: https://todo.sr.ht/~sircmpwn/koushin/64
This commit is contained in:
parent
bfb2d8a4de
commit
be3c069f5d
1 changed files with 4 additions and 1 deletions
|
@ -41,7 +41,10 @@ func newPlugin(srv *koushin.Server) (koushin.Plugin, error) {
|
||||||
u.Scheme = "http"
|
u.Scheme = "http"
|
||||||
}
|
}
|
||||||
if u.Scheme == "" {
|
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 {
|
if err := sanityCheckURL(u); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue