Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Improved error message after failing to translate #203

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/jekyll-multiple-languages-plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down