forked from kevadesu/forgejo
#1040: dashboard no longer accessible when repo is missing
This commit is contained in:
parent
471b8a18ab
commit
588f3215c6
11 changed files with 51 additions and 15 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue