Adding response body in exception. Closes #36
This commit is contained in:
parent
fe3e1197f8
commit
add35e298a
|
@ -1,3 +1,7 @@
|
|||
# 1.6.1
|
||||
|
||||
- add response body in Exception#inspect
|
||||
|
||||
# 1.6.0
|
||||
|
||||
- forgot to include rest-client.rb in the gem
|
||||
|
|
|
@ -99,7 +99,7 @@ module RestClient
|
|||
end
|
||||
|
||||
def inspect
|
||||
"#{message} #{http_code}"
|
||||
"#{message} #{http_code}: #{http_body}"
|
||||
end
|
||||
|
||||
def to_s
|
||||
|
|
Loading…
Reference in New Issue