This commit is contained in:
Unknwon 2015-11-20 02:38:41 -05:00
parent 9b6c835715
commit 987dcc5372
13 changed files with 97 additions and 13 deletions

View file

@ -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)
}
// __ __ ___. .__ __