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

@@ -354,7 +354,7 @@ func Issues(ctx *middleware.Context) {
issues[i].Repo, err = models.GetRepositoryById(issues[i].RepoId)
if err != nil {
if err == models.ErrRepoNotExist {
if models.IsErrRepoNotExist(err) {
log.Warn("user.Issues(GetRepositoryById #%d): repository not exist", issues[i].RepoId)
continue
} else {