NewGitHubAPIError creates a new GitHubAPIError with the provided message, response, and error.
(message string, resp *github.Response, err error)
| 20 | |
| 21 | // NewGitHubAPIError creates a new GitHubAPIError with the provided message, response, and error. |
| 22 | func newGitHubAPIError(message string, resp *github.Response, err error) *GitHubAPIError { |
| 23 | return &GitHubAPIError{ |
| 24 | Message: message, |
| 25 | Response: resp, |
| 26 | Err: err, |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | func (e *GitHubAPIError) Error() string { |
| 31 | return fmt.Errorf("%s: %w", e.Message, e.Err).Error() |
no outgoing calls