Method: LonoCfn::Base#check_for_errors
- Defined in:
- lib/lono_cfn/base.rb
#check_for_errors ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/lono_cfn/base.rb', line 47 def check_for_errors errors, warns = check_files unless errors.empty? puts "Please double check the command you ran. There were some errors." puts "ERROR: #{errors.join("\n")}".colorize(:red) exit end unless errors.empty? puts "Please double check the command you ran. There were some warnings." puts "WARN: #{errors.join("\n")}".colorize(:yellow) end end |