Method: Chef::ResourceReporter#run_failed

Defined in:
lib/chef/resource_reporter.rb

#run_failed(exception) ⇒ Object



126
127
128
129
130
131
132
133
134
# File 'lib/chef/resource_reporter.rb', line 126

def run_failed(exception)
  @exception = exception
  @status = "failure"
  # If we failed before we received the run_started callback, there's not much we can do
  # in terms of reporting
  if @run_status
    post_reporting_data
  end
end