aboutsummaryrefslogtreecommitdiff
path: root/models/issue.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-03-22 13:20:29 -0400
committerUnknwon <u@gogs.io>2017-03-22 13:20:29 -0400
commit85a050fca70446ea7a9e10266bbe083d5d8b63ea (patch)
tree23d3fcc2ce2fbd7f289477c1214ac0768e24d85b /models/issue.go
parentbb86d66496078b8c2fb242b6286d682ff9d5aa2f (diff)
issue: fix redirect to random issue if index does not exist (#4315)
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issue.go b/models/issue.go
index 32e20b65..6bcda7a9 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -827,7 +827,7 @@ func GetRawIssueByIndex(repoID, index int64) (*Issue, error) {
if err != nil {
return nil, err
} else if !has {
- return nil, ErrIssueNotExist{0, repoID, index}
+ return nil, errors.IssueNotExist{0, repoID, index}
}
return issue, nil
}
@@ -847,7 +847,7 @@ func getRawIssueByID(e Engine, id int64) (*Issue, error) {
if err != nil {
return nil, err
} else if !has {
- return nil, ErrIssueNotExist{id, 0, 0}
+ return nil, errors.IssueNotExist{id, 0, 0}
}
return issue, nil
}