Skip to content

Commit cd77c13

Browse files
committed
Dont bubble up an error for getClient
We should do this eventually, but to keep the existing behavior, we just return the error to the client.
1 parent 5ab610c commit cd77c13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/github/context_tools.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func GetMe(getClient GetClientFn, t translations.TranslationHelperFunc) (mcp.Too
4747
mcp.ToolHandlerFor[map[string]any, any](func(ctx context.Context, _ *mcp.CallToolRequest, _ map[string]any) (*mcp.CallToolResult, any, error) {
4848
client, err := getClient(ctx)
4949
if err != nil {
50-
return utils.NewToolResultErrorFromErr("failed to get GitHub client", err), nil, err
50+
return utils.NewToolResultErrorFromErr("failed to get GitHub client", err), nil, nil
5151
}
5252

5353
user, res, err := client.Users.Get(ctx, "")

0 commit comments

Comments
 (0)