aboutsummaryrefslogtreecommitdiff
path: root/models/access.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-03-23 14:27:34 -0400
committerUnknwon <u@gogs.io>2017-03-23 14:27:34 -0400
commitbeee6e03b15e594f396fb2fb769b58e543ef1794 (patch)
tree471a20e88e3ee8c1bfcd39d6bef2f420ed618287 /models/access.go
parent902372067cad9cfe7360473d1b985217a308a949 (diff)
error: move ErrRepoNotExist -> errors.RepoNotExist
Diffstat (limited to 'models/access.go')
-rw-r--r--models/access.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/models/access.go b/models/access.go
index 75af8485..0d3259de 100644
--- a/models/access.go
+++ b/models/access.go
@@ -8,6 +8,8 @@ import (
"fmt"
log "gopkg.in/clog.v1"
+
+ "github.com/gogits/gogs/models/errors"
)
type AccessMode int
@@ -109,7 +111,7 @@ func (u *User) GetRepositoryAccesses() (map[*Repository]AccessMode, error) {
for _, access := range accesses {
repo, err := GetRepositoryByID(access.RepoID)
if err != nil {
- if IsErrRepoNotExist(err) {
+ if errors.IsRepoNotExist(err) {
log.Error(4, "GetRepositoryByID: %v", err)
continue
}