aboutsummaryrefslogtreecommitdiffstats
path: root/routers/private
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2022-06-27 15:52:22 +0200
committerGitHub <noreply@github.com>2022-06-27 16:52:22 +0300
commit9eb6c4a0dfaed86713952da19a8aa5079e97addb (patch)
tree394220001707d269eabf5fbb73856614f7fe1de9 /routers/private
parent5371964a4ed0031113e362108775617fe96fd6ac (diff)
downloadgitea-9eb6c4a0dfaed86713952da19a8aa5079e97addb.tar.gz
gitea-9eb6c4a0dfaed86713952da19a8aa5079e97addb.zip
Add missing parameter for error in log message (#20144)
- Adds a `%v` for the last parameter, `err`. Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Diffstat (limited to 'routers/private')
-rw-r--r--routers/private/hook_pre_receive.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/private/hook_pre_receive.go b/routers/private/hook_pre_receive.go
index fb4c039d49..3e7d1fe9ef 100644
--- a/routers/private/hook_pre_receive.go
+++ b/routers/private/hook_pre_receive.go
@@ -477,7 +477,7 @@ func (ctx *preReceiveContext) loadPusherAndPermission() bool {
userPerm, err := access_model.GetUserRepoPermission(ctx, ctx.Repo.Repository, user)
if err != nil {
- log.Error("Unable to get Repo permission of repo %s/%s of User %s", ctx.Repo.Repository.OwnerName, ctx.Repo.Repository.Name, user.Name, err)
+ log.Error("Unable to get Repo permission of repo %s/%s of User %s: %v", ctx.Repo.Repository.OwnerName, ctx.Repo.Repository.Name, user.Name, err)
ctx.JSON(http.StatusInternalServerError, private.Response{
Err: fmt.Sprintf("Unable to get Repo permission of repo %s/%s of User %s: %v", ctx.Repo.Repository.OwnerName, ctx.Repo.Repository.Name, user.Name, err),
})