MCPcopy
hub / github.com/github/github-mcp-server / newGitHubRawAPIError

Function newGitHubRawAPIError

pkg/errors/error.go:56–62  ·  view source on GitHub ↗
(message string, resp *http.Response, err error)

Source from the content-addressed store, hash-verified

54}
55
56func newGitHubRawAPIError(message string, resp *http.Response, err error) *GitHubRawAPIError {
57 return &GitHubRawAPIError{
58 Message: message,
59 Response: resp,
60 Err: err,
61 }
62}
63
64func (e *GitHubRawAPIError) Error() string {
65 return fmt.Errorf("%s: %w", e.Message, e.Err).Error()

Callers 2

TestGitHubErrorContextFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestGitHubErrorContextFunction · 0.68