diff --git a/server/server.go b/server/server.go index a6fb396..d2458f8 100644 --- a/server/server.go +++ b/server/server.go @@ -61,7 +61,7 @@ func (s *Server) handler(rw http.ResponseWriter, r *http.Request) { p, found = site.Routes["/404.html"] } if !found { - fmt.Fprintf(rw, "404 page not found: %s", urlpath) // nolint: gas + fmt.Fprintf(rw, "404 page not found: %s\n", urlpath) // nolint: gas return } mimeType := mime.TypeByExtension(p.OutputExt()) @@ -74,7 +74,8 @@ func (s *Server) handler(rw http.ResponseWriter, r *http.Request) { } err := site.WriteDocument(w, p) if err != nil { - fmt.Printf("Error rendering %s: %s", urlpath, err) + fmt.Fprintf(w, "