MCPcopy Index your code
hub / github.com/dnote/dnote / MustGetHTTP500ErrorPage

Function MustGetHTTP500ErrorPage

pkg/server/assets/embed.go:39–46  ·  view source on GitHub ↗

MustGetHTTP500ErrorPage returns the content of HTML file for HTTP 500 error

()

Source from the content-addressed store, hash-verified

37
38// MustGetHTTP500ErrorPage returns the content of HTML file for HTTP 500 error
39func MustGetHTTP500ErrorPage() []byte {
40 ret, err := staticFiles.ReadFile("static/500.html")
41 if err != nil {
42 panic(errors.Wrap(err, "reading HTML file for 500 HTTP error"))
43 }
44
45 return ret
46}

Callers 2

NewTestFunction · 0.92
NewFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected