Skip to content

Commit

Permalink
Add error response while printing
Browse files Browse the repository at this point in the history
Signed-off-by: Ray <[email protected]>
  • Loading branch information
Dray56 authored and debTheRay committed Jul 8, 2024
1 parent 0602129 commit 9c2df38
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 9c2df38

Please sign in to comment.