Skip to content

Commit

Permalink
add details when serializing swagger error
Browse files Browse the repository at this point in the history
  • Loading branch information
junedev committed Nov 17, 2020
1 parent d41a96f commit d4afa6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ type GenericSwaggerError struct {

// Error returns non-empty string if there was an error.
func (e GenericSwaggerError) Error() string {
return e.error
return e.error + ", body: " + string(e.body)
}

// Body returns the raw bytes of the response
Expand Down

0 comments on commit d4afa6c

Please sign in to comment.