diff options
author | Unknwon <u@gogs.io> | 2015-11-20 02:38:41 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-20 02:38:41 -0500 |
commit | 987dcc5372998adaafb68e00a9a460e955d018e5 (patch) | |
tree | 6f88db3bee30cab2339244c124e6c82324a597a1 /models/error.go | |
parent | 9b6c835715ab27aa7a008a51415f38ca2a856cd0 (diff) | |
download | gitea-987dcc5372998adaafb68e00a9a460e955d018e5.tar.gz gitea-987dcc5372998adaafb68e00a9a460e955d018e5.zip |
fix #1383
Diffstat (limited to 'models/error.go')
-rw-r--r-- | models/error.go | 3 |
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) } // __ __ ___. .__ __ |