From 255b60931f6099dc0fa6613052894544a48bdf0d Mon Sep 17 00:00:00 2001 From: Gusted Date: Sun, 25 Feb 2024 15:40:18 +0100 Subject: [PATCH] [BUG] Log FindRenamedBranch error - Fix error string to add an `%v` verb to log the error correctly. --- modules/context/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/context/repo.go b/modules/context/repo.go index dca0791fe3..765e9cddce 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -848,7 +848,7 @@ func getRefName(ctx *Base, repo *Repository, pathType RepoRefType) string { return getRefNameFromPath(ctx, repo, path, func(s string) bool { b, exist, err := git_model.FindRenamedBranch(ctx, repo.Repository.ID, s) if err != nil { - log.Error("FindRenamedBranch", err) + log.Error("FindRenamedBranch: %v", err) return false }