mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	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>
This commit is contained in:
		| @@ -477,7 +477,7 @@ func (ctx *preReceiveContext) loadPusherAndPermission() bool { | |||||||
|  |  | ||||||
| 	userPerm, err := access_model.GetUserRepoPermission(ctx, ctx.Repo.Repository, user) | 	userPerm, err := access_model.GetUserRepoPermission(ctx, ctx.Repo.Repository, user) | ||||||
| 	if err != nil { | 	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{ | 		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), | 			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), | ||||||
| 		}) | 		}) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user