Method: ChefApply::UI::ErrorPrinter.dump_unexpected_error
- Defined in:
- lib/chef_apply/ui/error_printer.rb
.dump_unexpected_error(e) ⇒ Object
Use this to dump an an exception to output. useful if an error occurs in the error handling itself.
82 83 84 85 86 87 88 89 90 |
# File 'lib/chef_apply/ui/error_printer.rb', line 82 def self.dump_unexpected_error(e) Terminal.output "INTERNAL ERROR" Terminal.output "-=" * 30 Terminal.output "Message:" Terminal.output e. if e.respond_to?(:message) Terminal.output "Backtrace:" Terminal.output e.backtrace if e.respond_to?(:backtrace) Terminal.output "=-" * 30 end |