summaryrefslogtreecommitdiffstats
path: root/models/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/error.go')
-rw-r--r--models/error.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/models/error.go b/models/error.go
index 240e606776..dd1d4a668d 100644
--- a/models/error.go
+++ b/models/error.go
@@ -652,10 +652,8 @@ func (err ErrTeamAlreadyExist) Error() string {
//
type ErrUploadNotExist struct {
- ID int64
- UUID string
- UserID int64
- RepoID int64
+ ID int64
+ UUID string
}
func IsErrUploadNotExist(err error) bool {
@@ -664,5 +662,5 @@ func IsErrUploadNotExist(err error) bool {
}
func (err ErrUploadNotExist) Error() string {
- return fmt.Sprintf("attachment does not exist [id: %d, uuid: %s, user_id: %d, repo_id: %d]", err.ID, err.UUID, err.UserID, err.RepoID)
+ return fmt.Sprintf("attachment does not exist [id: %d, uuid: %s]", err.ID, err.UUID)
}