summaryrefslogtreecommitdiffstats
path: root/models/error.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-20 02:38:41 -0500
committerUnknwon <u@gogs.io>2015-11-20 02:38:41 -0500
commit987dcc5372998adaafb68e00a9a460e955d018e5 (patch)
tree6f88db3bee30cab2339244c124e6c82324a597a1 /models/error.go
parent9b6c835715ab27aa7a008a51415f38ca2a856cd0 (diff)
downloadgitea-987dcc5372998adaafb68e00a9a460e955d018e5.tar.gz
gitea-987dcc5372998adaafb68e00a9a460e955d018e5.zip
fix #1383
Diffstat (limited to 'models/error.go')
-rw-r--r--models/error.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/models/error.go b/models/error.go
index 7693e14edb..069346bef3 100644
--- a/models/error.go
+++ b/models/error.go
@@ -330,6 +330,7 @@ func (err ErrReleaseAlreadyExist) Error() string {
}
type ErrReleaseNotExist struct {
+ ID int64
TagName string
}
@@ -339,7 +340,7 @@ func IsErrReleaseNotExist(err error) bool {
}
func (err ErrReleaseNotExist) Error() string {
- return fmt.Sprintf("Release tag does not exist [tag_name: %s]", err.TagName)
+ return fmt.Sprintf("Release tag does not exist [id: %d, tag_name: %s]", err.ID, err.TagName)
}
// __ __ ___. .__ __