mirror of
https://github.com/gogs/gogs.git
synced 2026-05-07 21:47:29 +02:00
Minor improve on error handling
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user