diff --git a/lib/jekyll-multiple-languages-plugin.rb b/lib/jekyll-multiple-languages-plugin.rb index 190b705..078f6b8 100644 --- a/lib/jekyll-multiple-languages-plugin.rb +++ b/lib/jekyll-multiple-languages-plugin.rb @@ -629,7 +629,12 @@ class TranslatedString < String # initialize #====================================== def initialize(*several_variants, key) - super(*several_variants) + begin + super(*several_variants) + rescue TypeError => e + puts "Error when translating key: #{key}" + raise e + end @key = key end