aboutsummaryrefslogtreecommitdiff
path: root/models/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/error.go')
-rw-r--r--models/error.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/models/error.go b/models/error.go
index 70285b3a..91acd9cb 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)
}