Permalink
Browse files

added more descriptive message for exception if words package is nto …

…installed
  • Loading branch information...
1 parent f671cdc commit afa250c400b3025e74c951f6bcfb004bdf9d48e8 @JakubOboza JakubOboza committed Jun 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/randexp/dictionary.rb
@@ -5,7 +5,7 @@ def self.load_dictionary
elsif File.exists?("/usr/dict/words")
File.read("/usr/dict/words").split
else
- raise "words file not found"
+ raise "Words file not found. Check if it is installed in (/usr/share/dict/words or /usr/dict/words) "
end
end

0 comments on commit afa250c

Please sign in to comment.