Minor improve on error handling

This commit is contained in:
Unknwon
2017-02-10 00:11:51 -05:00
parent d9d329bec8
commit f5dc436441
2 changed files with 1 additions and 4 deletions

View File

@@ -118,9 +118,6 @@ func (ctx *Context) NotFoundOrServerError(title string, errck func(error) bool,
}
func (ctx *Context) HandleText(status int, title string) {
if (status/100 == 4) || (status/100 == 5) {
log.Error(4, "%s", title)
}
ctx.PlainText(status, []byte(title))
}