Skip to content

Commit 3febcaa

Browse files
authored
Use a common message template instead of a special one (#31878)
1 parent 3a51c37 commit 3febcaa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

options/locale/locale_en-US.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ filter.public = Public
159159
filter.private = Private
160160

161161
no_results_found = No results found.
162+
internal_error_skipped = Internal error occurred but is skipped: %s
162163

163164
[search]
164165
search = Search...
@@ -1279,7 +1280,6 @@ commit_graph.color = Color
12791280
commit.contained_in = This commit is contained in:
12801281
commit.contained_in_default_branch = This commit is part of the default branch
12811282
commit.load_referencing_branches_and_tags = Load branches and tags referencing this commit
1282-
commit.load_tags_failed = Load tags failed because of internal error
12831283
blame = Blame
12841284
download_file = Download file
12851285
normal_view = Normal View

routers/web/repo/commit.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func Commits(ctx *context.Context) {
9090
commitsTagsMap, err := repo_model.FindTagsByCommitIDs(ctx, ctx.Repo.Repository.ID, commitIDs...)
9191
if err != nil {
9292
log.Error("FindTagsByCommitIDs: %v", err)
93-
ctx.Flash.Error(ctx.Tr("repo.commit.load_tags_failed"))
93+
ctx.Flash.Error(ctx.Tr("internal_error_skipped", "FindTagsByCommitIDs"))
9494
} else {
9595
ctx.Data["CommitsTagsMap"] = commitsTagsMap
9696
}

0 commit comments

Comments
 (0)