From 0966b44018bc1e2f131358635776fcc3b75ee8eb Mon Sep 17 00:00:00 2001 From: Adam Cooke Date: Sat, 10 Feb 2024 17:21:54 +0000 Subject: [PATCH] style(rubocop): Lint/ShadowedException --- script/test_app_smtp.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/test_app_smtp.rb b/script/test_app_smtp.rb index 94f507f..8a93e22 100755 --- a/script/test_app_smtp.rb +++ b/script/test_app_smtp.rb @@ -19,6 +19,8 @@ begin end puts "\e[32mMessage has been sent successfully.\e[0m" +rescue Timeout::Error + puts "Sending timed out" rescue StandardError => e puts "\e[31mMessage was not delivered successfully to SMTP server.\e[0m" puts "Error: #{e.class} (#{e.message})" @@ -28,6 +30,4 @@ rescue StandardError => e puts " SMTP Username: #{Postal.config.smtp.username}" puts " SMTP Password: #{Postal.config.smtp.password}" puts -rescue Timeout::Error - puts "Sending timed out" end