1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-24 13:09:23 -05:00

[BUG] Log FindRenamedBranch error

- Fix error string to add an `%v` verb to log the error correctly.
This commit is contained in:
Gusted 2024-02-25 15:40:18 +01:00
parent 031822b8fc
commit 255b60931f
No known key found for this signature in database
GPG key ID: FD821B732837125F

View file

@ -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
}