Module: IV::CLI::Helpers::Errors::Methods

Defined in:
lib/iv-cli/helpers/errors.rb

Instance Method Summary collapse

Instance Method Details

#fail(exit_status = 1, message = "") ⇒ Object



8
9
10
11
12
# File 'lib/iv-cli/helpers/errors.rb', line 8

def fail(exit_status=1, message="")
  STDERR.puts "Error: #{message}" unless message.empty?
  STDERR.puts IV::CLI::USAGE
  exit exit_status
end