class Renegade::HandleErrors

Handle errors

Public Class Methods

handle_errors(errors) click to toggle source

Handle errors if they exist

# File lib/renegade/handle_errors.rb, line 6
def self.handle_errors(errors)
  if errors.empty?
    true
  else
    print_errors(errors)
    false
  end
end
handle_warnings(warnings) click to toggle source
# File lib/renegade/handle_errors.rb, line 15
def self.handle_warnings(warnings)
  print_warnings(warnings) unless warnings.empty?
end
print_errors(errors) click to toggle source
print_warnings(warnings) click to toggle source