From 987dcc5372998adaafb68e00a9a460e955d018e5 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 20 Nov 2015 02:38:41 -0500 Subject: fix #1383 --- models/error.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'models/error.go') 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) } // __ __ ___. .__ __ -- cgit v1.2.3