lib/grendel/client.rb in grendel-ruby-0.1.4 vs lib/grendel/client.rb in grendel-ruby-0.1.5

- old
+ new

@@ -56,10 +56,13 @@ return options end class HTTPException < Exception + attr_reader :response + def initialize(response) + @response = response msg = "#{response.code} #{response.message}" msg << "\n#{response.body}" unless response.body.blank? super(msg) end end