Skip to content

Commit

Permalink
Merge pull request #90 from Dray56/error_output
Browse files Browse the repository at this point in the history
Add error response while printing
  • Loading branch information
joefitzgerald authored Jul 9, 2024
2 parents 0602129 + 9c2df38 commit be66c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request_errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type RequestError struct {
}

func (r RequestError) Error() string {
return fmt.Sprintf("An error occurred while calling %s", r.Url)
return fmt.Sprintf("An error occurred while calling %s %s", r.Url, string(r.ErrorResponse))
}

func requestErrorFromOauthError(err error) error {
Expand Down

0 comments on commit be66c6b

Please sign in to comment.