summaryrefslogtreecommitdiffstats
path: root/routers/user/home.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/user/home.go')
-rw-r--r--routers/user/home.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/routers/user/home.go b/routers/user/home.go
index daa58b2604..99c747e12c 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -287,7 +287,10 @@ func Issues(ctx *context.Context) {
if repoID > 0 {
if _, ok := showReposMap[repoID]; !ok {
repo, err := models.GetRepositoryByID(repoID)
- if err != nil {
+ if models.IsErrRepoNotExist(err) {
+ ctx.NotFound("GetRepositoryByID", err)
+ return
+ } else if err != nil {
ctx.ServerError("GetRepositoryByID", fmt.Errorf("[%d]%v", repoID, err))
return
}