diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2024-09-15 01:17:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-14 17:17:49 +0000 |
commit | 3febcaa53bf6107c35b3d54b0f7a82effc39fe35 (patch) | |
tree | 4dec2c2a69ba4db4e322e48879a8472c72516fbb | |
parent | 3a51c37672d2fbad1f222922e75ce704d5a1ac71 (diff) | |
download | gitea-3febcaa53bf6107c35b3d54b0f7a82effc39fe35.tar.gz gitea-3febcaa53bf6107c35b3d54b0f7a82effc39fe35.zip |
Use a common message template instead of a special one (#31878)
-rw-r--r-- | options/locale/locale_en-US.ini | 2 | ||||
-rw-r--r-- | routers/web/repo/commit.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 818a8aa5b0..601671d8b9 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -159,6 +159,7 @@ filter.public = Public filter.private = Private no_results_found = No results found. +internal_error_skipped = Internal error occurred but is skipped: %s [search] search = Search... @@ -1279,7 +1280,6 @@ commit_graph.color = Color commit.contained_in = This commit is contained in: commit.contained_in_default_branch = This commit is part of the default branch commit.load_referencing_branches_and_tags = Load branches and tags referencing this commit -commit.load_tags_failed = Load tags failed because of internal error blame = Blame download_file = Download file normal_view = Normal View diff --git a/routers/web/repo/commit.go b/routers/web/repo/commit.go index c91d5fad05..a433dd228e 100644 --- a/routers/web/repo/commit.go +++ b/routers/web/repo/commit.go @@ -90,7 +90,7 @@ func Commits(ctx *context.Context) { commitsTagsMap, err := repo_model.FindTagsByCommitIDs(ctx, ctx.Repo.Repository.ID, commitIDs...) if err != nil { log.Error("FindTagsByCommitIDs: %v", err) - ctx.Flash.Error(ctx.Tr("repo.commit.load_tags_failed")) + ctx.Flash.Error(ctx.Tr("internal_error_skipped", "FindTagsByCommitIDs")) } else { ctx.Data["CommitsTagsMap"] = commitsTagsMap } |