MCPcopy Create free account
hub / github.com/dinofizz/diskplayer / errorPage

Function errorPage

server.go:137–141  ·  view source on GitHub ↗

errorPage returns an HTML error page, inserting error details into the error.html template.

(w http.ResponseWriter, err error)

Source from the content-addressed store, hash-verified

135
136// errorPage returns an HTML error page, inserting error details into the error.html template.
137func errorPage(w http.ResponseWriter, err error) {
138 p := &ErrorPage{Body: []byte(err.Error())}
139 t, _ := template.ParseFiles("./templates/error.html")
140 t.Execute(w, p)
141}
142
143type CallbackHandler struct {
144 ch chan *oauth2.Token

Callers 3

recordHandlerFunction · 0.85
indexHandlerFunction · 0.85
TestErrorHandlerFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestErrorHandlerFunction · 0.68