mirror of
https://github.com/rest-client/rest-client.git
synced 2022-11-09 13:49:40 -05:00
Adding response body in exception. Closes #36
This commit is contained in:
parent
fe3e1197f8
commit
add35e298a
2 changed files with 5 additions and 1 deletions
|
@ -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 a new issue