Method: Chef::ActionCollection#resource_failed

Defined in:
lib/chef/action_collection.rb

#resource_failed(new_resource, action, exception) ⇒ Object

Hook called after an action fails.

(see EventDispatch::Base#)



210
211
212
213
214
# File 'lib/chef/action_collection.rb', line 210

def resource_failed(new_resource, action, exception)
  current_record.status = :failed
  current_record.exception = exception
  current_record.error_description = Formatters::ErrorMapper.resource_failed(new_resource, action, exception).for_json
end