unexport page
Former-commit-id: 1ba9608a9c27334a337d3f919458c6f6116be0f9
This commit is contained in:
4
error.go
4
error.go
@@ -50,8 +50,8 @@ const errTemplate = `<!DOCTYPE html>
|
||||
</div>
|
||||
</html>`
|
||||
|
||||
// PrintErrorHTML prints the error page
|
||||
func PrintErrorHTML(w http.ResponseWriter, code int, err error) (int, error) {
|
||||
// htmlError prints the error page
|
||||
func htmlError(w http.ResponseWriter, code int, err error) (int, error) {
|
||||
tpl := errTemplate
|
||||
tpl = strings.Replace(tpl, "TITLE", strconv.Itoa(code)+" "+http.StatusText(code), -1)
|
||||
tpl = strings.Replace(tpl, "CODE", err.Error(), -1)
|
||||
|
||||
Reference in New Issue
Block a user