mirror of
https://github.com/gogs/gogs.git
synced 2026-05-06 07:37:28 +02:00
repo/pull: detect case when no merge base found (#4434)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user