Skip to content

Commit

Permalink
Better explaining when locale is not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
diego-aslz committed Feb 13, 2017
1 parent 7cc7ac5 commit 28429b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stopwords/snowball/filter.rb
Expand Up @@ -8,7 +8,7 @@ def initialize locale, custom_list = []
@locale = locale
@locale_filename = "#{File.dirname(__FILE__)}/locales/#{locale}.csv"

raise "Unknown locale" unless File.exists?(@locale_filename)
raise "Unknown locale: #{locale.inspect}" unless File.exists?(@locale_filename)
super File.read(@locale_filename).split(",") + custom_list
end
end
Expand Down

0 comments on commit 28429b2

Please sign in to comment.