summaryrefslogtreecommitdiffstats
path: root/models/org_team.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/org_team.go')
-rw-r--r--models/org_team.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/org_team.go b/models/org_team.go
index 799716679c..90a089417d 100644
--- a/models/org_team.go
+++ b/models/org_team.go
@@ -352,7 +352,7 @@ func getTeam(e Engine, orgID int64, name string) (*Team, error) {
if err != nil {
return nil, err
} else if !has {
- return nil, ErrTeamNotExist
+ return nil, ErrTeamNotExist{orgID, 0, name}
}
return t, nil
}
@@ -373,7 +373,7 @@ func getTeamByID(e Engine, teamID int64) (*Team, error) {
if err != nil {
return nil, err
} else if !has {
- return nil, ErrTeamNotExist
+ return nil, ErrTeamNotExist{0, teamID, ""}
}
return t, nil
}