    # File lib/chef/resource_reporter.rb, line 154
        def resource_failed(new_resource, action, exception)
          @total_res_count += 1
          unless nested_resource?(new_resource)
            @pending_update ||= ResourceReport.new_for_exception(new_resource, action)
            @pending_update.exception = exception
          end
          description = Formatters::ErrorMapper.resource_failed(new_resource, action, exception)
          @error_descriptions = description.for_json
        end