Commit 8dd04dd
committed
fix: use proper API error response in ListReleases pagination
Fix ListReleases to use ghErrors.NewGitHubAPIErrorResponse instead of
returning a raw Go error via fmt.Errorf. This ensures API errors are
properly surfaced as tool result errors to the user, consistent with
the pattern used in other tools like ListGists.
Signed-off-by: Srikanth Patchava <spatchava@meta.com>1 parent 724cc82 commit 8dd04dd
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| |||
1714 | 1714 | | |
1715 | 1715 | | |
1716 | 1716 | | |
1717 | | - | |
| 1717 | + | |
1718 | 1718 | | |
1719 | 1719 | | |
1720 | 1720 | | |
| |||
0 commit comments