kurtsson / jekyll-multiple-languages-plugin

I18n support for Jekyll and Octopress
MIT License
925 stars 202 forks source link

Catch null return value and report missing key instead of running into Exception #17

Closed rschwietzke closed 10 years ago

rschwietzke commented 10 years ago

Did not get a proper error message for certain keys, so I added a null check

kurtsson commented 10 years ago

Thank you. However I changed the line to translation.nil? because I think it follows the other code pattern better

rschwietzke commented 10 years ago

I am a totally Ruby newbie... hence the code looks like Java ;)