1
0
Fork 0
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:
Julien Kirch 2010-07-02 18:36:49 +02:00
parent fe3e1197f8
commit add35e298a
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -99,7 +99,7 @@ module RestClient
end
def inspect
"#{message} #{http_code}"
"#{message} #{http_code}: #{http_body}"
end
def to_s