lib/httpx/response.rb in httpx-0.4.0 vs lib/httpx/response.rb in httpx-0.4.1
- old
+ new
@@ -236,12 +236,13 @@
end
class ErrorResponse
include Loggable
- attr_reader :error
+ attr_reader :request, :error
- def initialize(error, options)
+ def initialize(request, error, options)
+ @request = request
@error = error
@options = Options.new(options)
log_exception(@error)
end