lib/asciidoctor/i18n/translator.rb in asciidoctor-i18n-0.1.1 vs lib/asciidoctor/i18n/translator.rb in asciidoctor-i18n-0.1.2
- old
+ new
@@ -25,10 +25,10 @@
if source.is_a?(String)
translate_string(source)
elsif source.is_a?(Array)
translate_lines(source)
else
- raise ArgumentError, "invalid argument for #translate method: #{source}"
+ raise ArgumentError, "invalid argument for #translate method: #{source.inspect}"
end
end
def save
return if no_update?