lib/httpx/plugins/retries.rb in httpx-0.20.5 vs lib/httpx/plugins/retries.rb in httpx-0.21.0

- old
+ new

@@ -65,10 +65,10 @@ def option_retry_change_requests(v) v end def option_retry_on(value) - raise ":retry_on must be called with the response" unless value.respond_to?(:call) + raise TypeError, ":retry_on must be called with the response" unless value.respond_to?(:call) value end end