lib/twitter/client.rb in twitter-5.16.0 vs lib/twitter/client.rb in twitter-5.17.0

- old
+ new

@@ -58,10 +58,10 @@ # @raise [Twitter::Error::ConfigurationError] Error is raised when # supplied twitter credentials are not a String or Boolean. def validate_credentials! credentials.each do |credential, value| next if value.nil? || value == true || value == false || value.is_a?(String) - fail(Twitter::Error::ConfigurationError.new("Invalid #{credential} specified: #{value.inspect} must be a String.")) + raise(Twitter::Error::ConfigurationError.new("Invalid #{credential} specified: #{value.inspect} must be a String.")) end end end end