summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 055f9d0)
raw | patch | inline | side by side (parent: 055f9d0)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 26 Nov 2014 21:03:31 +0000 (22:03 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 26 Nov 2014 21:09:43 +0000 (22:09 +0100) |
server/error.go | patch | blob | history |
diff --git a/server/error.go b/server/error.go
index 2afa44ab98e570c5d43c9aa08508599e0a986bea..270225a32473392bb4c1a932423a4c3ade058c6c 100644 (file)
--- a/server/error.go
+++ b/server/error.go
import (
"bytes"
"fmt"
- "html/template"
"io"
"log"
"net/http"
func (s *Server) err(w http.ResponseWriter, status int, err error) {
log.Printf("%s: %v", http.StatusText(status), err)
- page := struct {
- Title string
- Query string
- Content template.HTML
- }{
+ page := page{
Title: "SysDB - Error",
Content: "<section class=\"error\">" + html(err.Error()) + "</section>",
}