Method: Command::TextInterpreter#output_exception

Defined in:
lib/command-set/interpreter/text.rb

#output_exception(label, ex) ⇒ Object



50
51
52
53
54
55
56
57
# File 'lib/command-set/interpreter/text.rb', line 50

def output_exception(label, ex)
  @out_io.puts label + ": " + ex.message
  @out_io.puts ex.backtrace.join("\n") if @behavior[:debug_commands]
  logger.warn ex.message
  ex.backtrace.each do |line|
    logger.debug line
  end
end