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