Skip to content

Commit ec521d5

Browse files
committed
fixed err return type for json marshalling
1 parent 93fa25b commit ec521d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/github/pullrequests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ func UpdatePullRequest(getClient GetClientFn, getGQLClient GetGQLClientFn, t tra
414414

415415
r, err := json.Marshal(finalPR)
416416
if err != nil {
417-
return ghErrors.NewGitHubGraphQLErrorResponse(ctx, "Failed to marshal response: %v", err), nil
417+
return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil
418418
}
419419

420420
return mcp.NewToolResultText(string(r)), nil

0 commit comments

Comments
 (0)