unexport page

Former-commit-id: 1ba9608a9c
This commit is contained in:
Henrique Dias committed 2017-06-25 13:00:33 +01:00
1 parent 7b33975f7b
commit a4fe27a6d6
5 files changed
+98 -108

No files matched your search

+2 -2
View File
@@ -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)