diff --git a/src/ui/controllers/error.go b/src/ui/controllers/error.go index e9a99fba4..63f9f80ed 100644 --- a/src/ui/controllers/error.go +++ b/src/ui/controllers/error.go @@ -4,10 +4,12 @@ import ( "github.com/astaxie/beego" ) +// ErrorController handles beego error pages type ErrorController struct { beego.Controller } +// Error404 renders the 404 page func (ec *ErrorController) Error404() { ec.Data["content"] = "page not found" ec.TplName = "404.tpl"