Check ignored errors for issue and milestone count (#3213)

This commit is contained in:
Ethan Koenig 2017-12-18 06:06:51 -08:00 committed by Lauris BH
parent 9a0e2a8b07
commit 0e384c6376
3 changed files with 57 additions and 21 deletions

View file

@ -1067,7 +1067,11 @@ func Milestones(ctx *context.Context) {
ctx.Data["PageIsMilestones"] = true
isShowClosed := ctx.Query("state") == "closed"
openCount, closedCount := models.MilestoneStats(ctx.Repo.Repository.ID)
openCount, closedCount, err := models.MilestoneStats(ctx.Repo.Repository.ID)
if err != nil {
ctx.Handle(500, "MilestoneStats", err)
return
}
ctx.Data["OpenCount"] = openCount
ctx.Data["ClosedCount"] = closedCount