fixed error handling, and error logging for panel rendering

This commit is contained in:
Torkel Ödegaard
2015-02-05 12:23:24 +01:00
parent 8e1b753664
commit e5fbbe96fd
7 changed files with 36 additions and 11 deletions
+1 -6
View File
@@ -88,12 +88,7 @@ func (ctx *Context) Handle(status int, title string, err error) {
}
}
switch status {
case 404:
ctx.Data["Title"] = "Page Not Found"
case 500:
ctx.Data["Title"] = "Internal Server Error"
}
ctx.Data["Title"] = title
ctx.HTML(status, strconv.Itoa(status))
}