lib/async/rest/error.rb in async-rest-0.12.0 vs lib/async/rest/error.rb in async-rest-0.12.1

- old
+ new

@@ -24,9 +24,23 @@ end class RequestError < Error end + class UnsupportedError < Error + end + class ResponseError < Error + def initialize(response) + super(response.read) + + @response = response + end + + def to_s + "#{@response}: #{super}" + end + + attr :response end end end