mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 13:28:25 +00:00 
			
		
		
		
	Return if marshalling error
This commit is contained in:
		@@ -93,6 +93,7 @@ func Person(ctx *context.APIContext) {
 | 
				
			|||||||
	binary, err = json.Marshal(jsonmap)
 | 
						binary, err = json.Marshal(jsonmap)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		ctx.Error(http.StatusInternalServerError, "Marshal", err)
 | 
							ctx.Error(http.StatusInternalServerError, "Marshal", err)
 | 
				
			||||||
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if _, err = ctx.Resp.Write(binary); err != nil {
 | 
						if _, err = ctx.Resp.Write(binary); err != nil {
 | 
				
			||||||
		log.Error("write to resp err: %v", err)
 | 
							log.Error("write to resp err: %v", err)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user