lib/omniauth/failure_endpoint.rb in omniauth-1.3.1 vs lib/omniauth/failure_endpoint.rb in omniauth-1.3.2

- old
+ new

@@ -20,10 +20,10 @@ raise_out! if OmniAuth.config.failure_raise_out_environments.include?(ENV['RACK_ENV'].to_s) redirect_to_failure end def raise_out! - fail(env['omniauth.error'] || OmniAuth::Error.new(env['omniauth.error.type'])) + raise(env['omniauth.error'] || OmniAuth::Error.new(env['omniauth.error.type'])) end def redirect_to_failure message_key = env['omniauth.error.type'] new_path = "#{env['SCRIPT_NAME']}#{OmniAuth.config.path_prefix}/failure?message=#{message_key}#{origin_query_param}#{strategy_name_query_param}"