Skip to content

Commit 5d5d919

Browse files
committed
correct Error Msg
1 parent 454ee44 commit 5d5d919

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/repo/pull.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,13 +344,13 @@ func PrepareViewPullInfo(ctx *context.Context, issue *models.Issue) *git.Compare
344344

345345
divergence, divergenceError := pull_service.GetDiverging(pull)
346346
if divergenceError != nil {
347-
ctx.ServerError("CountDivergingCommits", divergenceError)
347+
ctx.ServerError("GetDiverging", divergenceError)
348348
return nil
349349
}
350350
ctx.Data["Divergence"] = divergence
351351

352352
if err := pull.LoadProtectedBranch(); err != nil {
353-
ctx.ServerError("GetLatestCommitStatus", err)
353+
ctx.ServerError("LoadProtectedBranch", err)
354354
return nil
355355
}
356356
ctx.Data["EnableStatusCheck"] = pull.ProtectedBranch != nil && pull.ProtectedBranch.EnableStatusCheck

0 commit comments

Comments
 (0)