Method: Chef::Formatters::Base#file_load_failed
- Defined in:
- lib/chef/formatters/base.rb
#file_load_failed(path, exception) ⇒ Object
Generic callback for any attribute/library/lwrp/recipe file throwing an exception when loaded. Default behavior is to use CompileErrorInspector to print contextual info about the failure.
154 155 156 157 |
# File 'lib/chef/formatters/base.rb', line 154 def file_load_failed(path, exception) description = ErrorMapper.file_load_failed(path, exception) display_error(description) end |