Skip to content

Commit

Permalink
Update rescue
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydwatkin committed Jul 4, 2024
1 parent 567f8a4 commit ff30321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano/asg/tasks/rolling.rake
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ namespace :rolling do
logger.info 'Terminating instance(s)...'
begin
instances.terminate
rescue Capistrano::ASG::Rolling::InstanceTerminateraise => e
rescue Capistrano::ASG::Rolling::InstanceTerminateFailed => e
logger.warning "Failed to terminate Instance **#{e.instance.id}**: #{e.message}"
raise RuntimeError, 'Auto Scaling Group Update Failed.'
end
Expand Down

0 comments on commit ff30321

Please sign in to comment.