Skip to content

Commit 9dd9893

Browse files
committed
Fix test
1 parent 7c35d3d commit 9dd9893

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

routers/api/v1/repo/issue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ func EditIssue(ctx *context.APIContext) {
898898
if issue.MilestoneID > 0 {
899899
issue.Milestone, err = issues_model.GetMilestoneByRepoID(ctx, ctx.Repo.Repository.ID, *form.Milestone)
900900
if err != nil {
901-
ctx.APIErrorInternal(err)
901+
ctx.Error(http.StatusInternalServerError, "GetMilestoneByRepoID", err)
902902
return
903903
}
904904
} else {

routers/api/v1/repo/pull.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ func EditPullRequest(ctx *context.APIContext) {
696696
issue.MilestoneID = form.Milestone
697697
issue.Milestone, err = issues_model.GetMilestoneByRepoID(ctx, ctx.Repo.Repository.ID, form.Milestone)
698698
if err != nil {
699-
ctx.APIErrorInternal(err)
699+
ctx.Error(http.StatusInternalServerError, "GetMilestoneByRepoID", err)
700700
return
701701
}
702702
if err = issue_service.ChangeMilestoneAssign(ctx, issue, ctx.Doer, oldMilestoneID); err != nil {

0 commit comments

Comments
 (0)