mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-07 23:09:32 +02:00
#1040: dashboard no longer accessible when repo is missing
This commit is contained in:
1 parent
471b8a18ab
commit
588f3215c6
11 files changed
+51
-15
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user