def call(exception, locale, key, options)
if exception.is_a?(MissingTranslationData)
if options[:rescue_format] == :html
if !defined?(@rescue_format_deprecation)
$stderr.puts "[DEPRECATED] I18n's :recue_format option will be removed from a future release. All exception messages will be plain text. If you need the exception handler to return an html format please set or pass a custom exception handler."
@rescue_format_deprecation = true
end
exception.html_message
else
exception.message
end
else
raise exception
end
end