Module: Rubycom::ErrorHandler

Defined in:
lib/rubycom/error_handler.rb

Class Method Summary collapse

Class Method Details

.handle_error(e, cli_output) ⇒ Object

Prints the error followed by the command line interface text

Parameters:

  • e (Error)

    the error to be printed

  • cli_output (String)

    the command line interface text to be printed



8
9
10
11
12
# File 'lib/rubycom/error_handler.rb', line 8

def self.handle_error(e, cli_output)
  $stderr.puts e
  $stderr.puts
  $stderr.puts cli_output
end