From 6dfaa720dbb38db88f3a29e49781157266da9258 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 19 Aug 2024 20:28:08 -0700 Subject: [PATCH] Follow @wxiaoguang's suggestion --- options/locale/locale_en-US.ini | 2 +- 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 1b5f52576d..06445a7b6e 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -159,7 +159,7 @@ filter.public = Public filter.private = Private no_results_found = No results found. -load_failed = Load %s failed because of internal error +internal_error_skipped = Internal error occurred but is skipped: %s [search] search = Search... diff --git a/routers/web/repo/commit.go b/routers/web/repo/commit.go index bbdf4962b0..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("load_failed", "tags")) + ctx.Flash.Error(ctx.Tr("internal_error_skipped", "FindTagsByCommitIDs")) } else { ctx.Data["CommitsTagsMap"] = commitsTagsMap }