Class: JadeSystemsToolbox::ErrorReporter

Inherits:
Thor
  • Object
show all
Defined in:
lib/jade_systems_toolbox/error_reporter.rb

Class Method Summary collapse

Class Method Details

.report(exception) ⇒ Object



6
7
8
9
10
11
# File 'lib/jade_systems_toolbox/error_reporter.rb', line 6

def report(exception)
  $stderr.puts exception.message

  # TODO: Only show the backtrace back to the user's code (not Thor invocation frames).
  $stderr.puts exception.backtrace if !exception.respond_to?(:verbose) || exception.verbose
end