Browse Source

fix typo in IssueComment and return more API error data

Will Norris 13 years ago
parent
commit
ef0630af69
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      github/github.go
  2. +1
    -1
      github/issues.go

+ 2
- 2
github/github.go View File

@ -173,9 +173,9 @@ type ErrorResponse struct {
}
func (r *ErrorResponse) Error() string {
return fmt.Sprintf("%v %v: %d %v",
return fmt.Sprintf("%v %v: %d %v %+v",
r.Response.Request.Method, r.Response.Request.URL,
r.Response.StatusCode, r.Message)
r.Response.StatusCode, r.Message, r.Errors)
}
/*


+ 1
- 1
github/issues.go View File

@ -40,7 +40,7 @@ type Issue struct {
// IssueComment represents a comment left on an issue.
type IssueComment struct {
ID int `json:"id,omitempty"`
Body string `json:"body:omitempty"`
Body string `json:"body,omitempty"`
User *User `json:"user,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`


Loading…
Cancel
Save