repo/pull: detect case when no merge base found (#4434)

This commit is contained in:
Unknwon
2017-06-05 00:10:53 -04:00
parent 02a576a6a0
commit 36d6450977
11 changed files with 94 additions and 67 deletions

View File

@@ -153,7 +153,7 @@ func (c *Context) Handle(status int, title string, err error) {
c.Data["Title"] = "Page Not Found"
case http.StatusInternalServerError:
c.Data["Title"] = "Internal Server Error"
log.Error(2, "%s: %v", title, err)
log.Error(3, "%s: %v", title, err)
if !setting.ProdMode || (c.IsLogged && c.User.IsAdmin) {
c.Data["ErrorMsg"] = err
}