1
0
Fork 0
forked from forgejo/forgejo

finish create issue with milestone

This commit is contained in:
Unknwon 2015-08-10 18:57:57 +08:00
parent 922f3f3062
commit 09a1b2a1f5
10 changed files with 257 additions and 155 deletions

View file

@ -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)
}