lib/httpx/errors.rb in httpx-0.9.0 vs lib/httpx/errors.rb in httpx-0.10.0
- old
+ new
@@ -26,9 +26,10 @@
ResolveError = Class.new(Error)
NativeResolveError = Class.new(ResolveError) do
attr_reader :connection, :host
+
def initialize(connection, host, message = "Can't resolve #{host}")
@connection = connection
@host = host
super(message)
end