lib/omni_auth/multi_provider/handler.rb in omniauth-multi-provider-0.2.1 vs lib/omni_auth/multi_provider/handler.rb in omniauth-multi-provider-0.3.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module OmniAuth module MultiProvider class Handler attr_reader :path_prefix, :provider_instance_path_regex, :request_path_regex, :callback_path_regex, :callback_suffix, @@ -60,10 +62,10 @@ end def add_identity_provider_options(strategy, env, identity_provider_id) identity_provider_options = identity_provider_options_generator.call(identity_provider_id, env) || {} strategy.options.merge!(identity_provider_options) - rescue => e + rescue StandardError => e result = strategy.fail!(:invalid_identity_provider, e) throw :warden, result end def current_path(env)