We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14230ca commit a315c8dCopy full SHA for a315c8d
routers/repo/milestone.go
@@ -253,6 +253,11 @@ func MilestoneIssuesAndPulls(ctx *context.Context) {
253
milestoneID := ctx.ParamsInt64(":id")
254
milestone, err := models.GetMilestoneByID(milestoneID)
255
if err != nil {
256
+ if models.IsErrMilestoneNotExist(err) {
257
+ ctx.NotFound("GetMilestoneByID", err)
258
+ return
259
+ }
260
+
261
ctx.ServerError("GetMilestoneByID", err)
262
return
263
}
0 commit comments