Return error on channel page

This commit is contained in:
Peter Stuifzand 2021-07-31 16:40:21 +02:00
parent dcc9bfa889
commit c7f231a38e
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -411,7 +411,7 @@ func (h *mainHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
err = h.renderTemplate(w, "channel.html", page)
if err != nil {
fmt.Fprintf(w, "ERROR: %s\n", err)
http.Error(w, err.Error(), 500)
}
return
} else if r.URL.Path == "/logs" {