Skip to content

Commit

Permalink
Print error details in addition to message and http code (#131)
Browse files Browse the repository at this point in the history
* Print error details in addition to message and http code

* %v -> %+v
  • Loading branch information
Shadonra authored and roopakv committed Dec 17, 2019
1 parent 16c52d3 commit 5822d5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ type (

// Error method implementation for ErrorResponse struct
func (r *ErrorResponse) Error() string {
return fmt.Sprintf("%v %v: %d %s", r.Response.Request.Method, r.Response.Request.URL, r.Response.StatusCode, r.Message)
return fmt.Sprintf("%v %v: %d %s, %+v", r.Response.Request.Method, r.Response.Request.URL, r.Response.StatusCode, r.Message, r.Details)
}

// MarshalJSON for JSONTime
Expand Down

0 comments on commit 5822d5e

Please sign in to comment.