Exception: ChefApply::Text::TextWrapper::MissingPlural

Inherits:
TextError
  • Object
show all
Defined in:
lib/chef_apply/text/text_wrapper.rb

Instance Attribute Summary

Attributes inherited from TextError

#line

Instance Method Summary collapse

Methods inherited from TextError

#set_call_context

Constructor Details

#initialize(path, terminus) ⇒ MissingPlural

Returns a new instance of MissingPlural.



77
78
79
80
81
82
83
# File 'lib/chef_apply/text/text_wrapper.rb', line 77

def initialize(path, terminus)
  set_call_context
  message = "i18n key #{path}.#{terminus} appears to reference a pluralization.\n"
  message << "Please append the plural indicator '!!pl' to the end of #{path}.\n"
  message << "Referenced from #{line}"
  super(message)
end