diff --git a/history.md b/history.md index 994361a..3820ac4 100644 --- a/history.md +++ b/history.md @@ -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 diff --git a/lib/restclient/exceptions.rb b/lib/restclient/exceptions.rb index 7159394..f12ebd1 100644 --- a/lib/restclient/exceptions.rb +++ b/lib/restclient/exceptions.rb @@ -99,7 +99,7 @@ module RestClient end def inspect - "#{message} #{http_code}" + "#{message} #{http_code}: #{http_body}" end def to_s