Method: Cody::CLI::Base#run_with_exception_handling
- Defined in:
- lib/cody/cli/base.rb
#run_with_exception_handling ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/cody/cli/base.rb', line 12 def run_with_exception_handling yield rescue Aws::CodeBuild::Errors::ResourceNotFoundException => e puts "ERROR: #{e.class}: #{e.}".color(:red) puts "CodeBuild project #{@full_project_name} not found." rescue Aws::CodeBuild::Errors::InvalidInputException => e puts "ERROR: #{e.class}: #{e.}".color(:red) end |