mirror of
				https://gitea.com/gitea/gitea-mcp.git
				synced 2025-10-30 09:51:50 +00:00 
			
		
		
		
	Include error info in some functions (#27)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/27 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: yp05327 <576951401@qq.com> Co-committed-by: yp05327 <576951401@qq.com>
This commit is contained in:
		| @@ -148,7 +148,7 @@ func ForkRepoFn(ctx context.Context, req mcp.CallToolRequest) (*mcp.CallToolResu | ||||
| 	} | ||||
| 	_, _, err := gitea.Client().CreateFork(user, repo, opt) | ||||
| 	if err != nil { | ||||
| 		return to.ErrorResult(fmt.Errorf("fork repository error %v", err)) | ||||
| 		return to.ErrorResult(fmt.Errorf("fork repository error: %v", err)) | ||||
| 	} | ||||
| 	return to.TextResult("Fork success") | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user