diff --git a/lib/omniauth/strategies/base_strategy.rb b/lib/omniauth/strategies/base_strategy.rb index f75af63..bd2e4b6 100644 --- a/lib/omniauth/strategies/base_strategy.rb +++ b/lib/omniauth/strategies/base_strategy.rb @@ -22,9 +22,8 @@ def public_key def client super rescue AttrRequired::AttrMissing - raise ClientCredentialsError.new( - "#{options[:name].camelize} client credentials not found. Please check your environment." - ) + raise ClientCredentialsError, + "#{options[:name].camelize} client credentials not found. Please check your environment." end def self.decode_logout_token(token)