diff options
author | Unknwon <u@gogs.io> | 2015-08-10 18:57:57 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-10 18:57:57 +0800 |
commit | 09a1b2a1f5ca4c510be2828635a790b2a775ac94 (patch) | |
tree | e6d4cd9207c78ea2d8b1ce24edc127e5025663b3 /models/error.go | |
parent | 922f3f306239aca309279dbdf1bdedfb9788b6e8 (diff) | |
download | gitea-09a1b2a1f5ca4c510be2828635a790b2a775ac94.tar.gz gitea-09a1b2a1f5ca4c510be2828635a790b2a775ac94.zip |
finish create issue with milestone
Diffstat (limited to 'models/error.go')
-rw-r--r-- | models/error.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/models/error.go b/models/error.go index 70285b3a34..91acd9cb11 100644 --- a/models/error.go +++ b/models/error.go @@ -267,7 +267,8 @@ func (err ErrLabelNotExist) Error() string { // \/ \/ \/ \/ \/ type ErrMilestoneNotExist struct { - ID int64 + ID int64 + RepoID int64 } func IsErrMilestoneNotExist(err error) bool { @@ -276,5 +277,5 @@ func IsErrMilestoneNotExist(err error) bool { } func (err ErrMilestoneNotExist) Error() string { - return fmt.Sprintf("milestone does not exist [id: %d]", err.ID) + return fmt.Sprintf("milestone does not exist [id: %d, repo_id: %d]", err.ID, err.RepoID) } |