lib/aws_recon/options.rb in aws_recon-0.5.1 vs lib/aws_recon/options.rb in aws_recon-0.5.2

- old
+ new

@@ -34,11 +34,11 @@ begin unless (options & ['-h', '--help']).any? aws_regions = ['global'].concat(Aws::EC2::Client.new.describe_regions.regions.map(&:region_name)) end rescue Aws::Errors::ServiceError => e - puts "\nAWS Error: #{e.code}\n\n" - exit + warn "\nAWS Error: #{e.code}\n\n" + exit(1) end aws_services = YAML.load(File.read(SERVICES_CONFIG_FILE), symbolize_names: true) args = Options.new(