Skip to content

Commit 0c9bc56

Browse files
committed
fix marshal failures
1 parent 2328eb8 commit 0c9bc56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/github/issues.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1466,7 +1466,7 @@ func UpdateIssue(getClient GetClientFn, getGQLClient GetGQLClientFn, t translati
14661466

14671467
r, err := json.Marshal(minimalResponse)
14681468
if err != nil {
1469-
return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil
1469+
return nil, fmt.Errorf("failed to marshal response: %w", err)
14701470
}
14711471

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

0 commit comments

Comments
 (0)