Method: Pebbles::Helpers#error

Defined in:
lib/pebbles/helpers.rb

#error(message, report = false) ⇒ Object



59
60
61
62
63
64
65
66
# File 'lib/pebbles/helpers.rb', line 59

def error(message, report=false)
  if Pebbles::Helpers.error_with_failure
    display("failed")
    Pebbles::Helpers.error_with_failure = false
  end
  $stderr.puts(format_with_bang(message))
  exit(1)
end