diff options
author | Unknwon <u@gogs.io> | 2017-03-23 14:27:34 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-23 14:27:34 -0400 |
commit | beee6e03b15e594f396fb2fb769b58e543ef1794 (patch) | |
tree | 471a20e88e3ee8c1bfcd39d6bef2f420ed618287 /models/error.go | |
parent | 902372067cad9cfe7360473d1b985217a308a949 (diff) |
error: move ErrRepoNotExist -> errors.RepoNotExist
Diffstat (limited to 'models/error.go')
-rw-r--r-- | models/error.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/models/error.go b/models/error.go index 72edb560..801a91f8 100644 --- a/models/error.go +++ b/models/error.go @@ -305,21 +305,6 @@ func (err ErrLastOrgOwner) Error() string { // |____|_ /\___ > __/ \____/____ >__||__| \____/|__| / ____| // \/ \/|__| \/ \/ -type ErrRepoNotExist struct { - ID int64 - UID int64 - Name string -} - -func IsErrRepoNotExist(err error) bool { - _, ok := err.(ErrRepoNotExist) - return ok -} - -func (err ErrRepoNotExist) Error() string { - return fmt.Sprintf("repository does not exist [id: %d, uid: %d, name: %s]", err.ID, err.UID, err.Name) -} - type ErrRepoAlreadyExist struct { Uname string Name string |