Log if template is unreadable

This commit is contained in:
Martin Polden
2018-12-28 15:05:31 +01:00
parent f34172761f
commit ddc4d9e53c
2 changed files with 8 additions and 2 deletions

View File

@ -308,7 +308,9 @@ func (s *Server) Handler() http.Handler {
}
// Browser
r.Route("GET", "/", s.DefaultHandler)
if s.Template != "" {
r.Route("GET", "/", s.DefaultHandler)
}
// Port testing
if s.LookupPort != nil {