Skip to content

Commit

Permalink
Add JSON tag for ErrorResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
migueleliasweb committed Jan 24, 2023
1 parent 2561c07 commit c93ce7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions github/github.go
Expand Up @@ -841,9 +841,9 @@ An ErrorResponse reports one or more errors caused by an API request.
GitHub API docs: https://docs.github.com/en/rest/#client-errors
*/
type ErrorResponse struct {
Response *http.Response // HTTP response that caused this error
Message string `json:"message"` // error message
Errors []Error `json:"errors"` // more detail on individual errors
Response *http.Response `json:"omitempty"` // HTTP response that caused this error
Message string `json:"message"` // error message
Errors []Error `json:"errors"` // more detail on individual errors
// Block is only populated on certain types of errors such as code 451.
Block *ErrorBlock `json:"block,omitempty"`
// Most errors will also include a documentation_url field pointing
Expand Down

0 comments on commit c93ce7b

Please sign in to comment.