aboutsummaryrefslogtreecommitdiff
path: root/internal/db/errors/org.go
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-03-16 01:22:27 +0800
committerᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-03-16 01:22:27 +0800
commit9e9ca66467116e9079a2639c00e9e623aca23015 (patch)
treedacdef5392608ff7107e4dd498959d4899e13e54 /internal/db/errors/org.go
parent82ff0c5852f29daa5f95d965fd50665581e7ea3c (diff)
refactor: unify error handling in routing layer
Diffstat (limited to 'internal/db/errors/org.go')
-rw-r--r--internal/db/errors/org.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/internal/db/errors/org.go b/internal/db/errors/org.go
deleted file mode 100644
index 56532746..00000000
--- a/internal/db/errors/org.go
+++ /dev/null
@@ -1,21 +0,0 @@
-// Copyright 2018 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
-
-package errors
-
-import "fmt"
-
-type TeamNotExist struct {
- TeamID int64
- Name string
-}
-
-func IsTeamNotExist(err error) bool {
- _, ok := err.(TeamNotExist)
- return ok
-}
-
-func (err TeamNotExist) Error() string {
- return fmt.Sprintf("team does not exist [team_id: %d, name: %s]", err.TeamID, err.Name)
-}