1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

#1040: dashboard no longer accessible when repo is missing

This commit is contained in:
Unknwon
2015-03-16 04:04:27 -04:00
parent 471b8a18ab
commit 588f3215c6
11 changed files with 51 additions and 15 deletions

View File

@@ -65,7 +65,7 @@ func Http(ctx *middleware.Context) {
repo, err := models.GetRepositoryByName(repoUser.Id, reponame)
if err != nil {
if err == models.ErrRepoNotExist {
if models.IsErrRepoNotExist(err) {
ctx.Handle(404, "GetRepositoryByName", nil)
} else {
ctx.Handle(500, "GetRepositoryByName", err)