Method: ChefApply::UI::ErrorPrinter#_format_single

Defined in:
lib/chef_apply/ui/error_printer.rb

#_format_single(out, exception, backtrace = nil) ⇒ Object



245
246
247
248
249
# File 'lib/chef_apply/ui/error_printer.rb', line 245

def _format_single(out, exception, backtrace = nil)
  out.puts "#{exception.class}: #{exception.message}"
  backtrace ||= exception.backtrace.to_a
  backtrace.each { |trace| out.puts "\t#{trace}" }
end