mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	don't record error when request a non-exist user (#15819)
* don't record error when request a non-exist user * Update routers/repo/http.go Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
		| @@ -117,7 +117,7 @@ func httpBase(ctx *context.Context) (h *serviceHandler) { | |||||||
| 			if redirectUserID, err := models.LookupUserRedirect(username); err == nil { | 			if redirectUserID, err := models.LookupUserRedirect(username); err == nil { | ||||||
| 				context.RedirectToUser(ctx, username, redirectUserID) | 				context.RedirectToUser(ctx, username, redirectUserID) | ||||||
| 			} else { | 			} else { | ||||||
| 				ctx.NotFound("GetUserByName", err) | 				ctx.NotFound(fmt.Sprintf("User %s does not exist", username), nil) | ||||||
| 			} | 			} | ||||||
| 		} else { | 		} else { | ||||||
| 			ctx.ServerError("GetUserByName", err) | 			ctx.ServerError("GetUserByName", err) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user