moved error page to logging

This commit is contained in:
bronku 2025-03-28 18:12:00 +01:00
parent 93afc14386
commit f8c03173cb
2 changed files with 6 additions and 4 deletions

View file

@ -1,13 +0,0 @@
package server
import (
"fmt"
"net/http"
)
func errorPage(err error, status int) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(status)
fmt.Fprint(w, err.Error())
}
}