diff --git a/routers/web/repo/compare.go b/routers/web/repo/compare.go index dcc520f92ee8b..d7e7bac7b7815 100644 --- a/routers/web/repo/compare.go +++ b/routers/web/repo/compare.go @@ -732,14 +732,14 @@ func CompareDiff(ctx *context.Context) { headBranches, _, err := ci.HeadGitRepo.GetBranchNames(0, 0) if err != nil { - ctx.ServerError("GetTagNamesByRepoID", err) + ctx.ServerError("GetBranches", err) return } ctx.Data["HeadBranches"] = headBranches headTags, err := repo_model.GetTagNamesByRepoID(ctx, ci.HeadRepo.ID) if err != nil { - ctx.ServerError("GetTags", err) + ctx.ServerError("GetTagNamesByRepoID", err) return } ctx.Data["HeadTags"] = headTags