lib/pwush/response.rb in pwush-0.3.0 vs lib/pwush/response.rb in pwush-0.4.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'dry/monads/result'
require 'pwush/response/deffered'
require 'pwush/response/value'
@@ -7,10 +9,10 @@
module Response
include Dry::Monads::Result::Mixin
def self.wrap
Deffered.new(yield).resolve
- rescue Http::TimeoutError => e
+ rescue HTTP::TimeoutError => e
Failure.new(e)
end
end
end