diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-20 05:01:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 11:01:20 +0100 |
commit | 59c8d43d94aa782848bf00f000512a04fca7c069 (patch) | |
tree | 24774d3dae3ee1d74d66f50b0f09630a0d9c9751 /lib/tasks | |
parent | 62c4aecf8f3cb1e2bf1d0d1611084a3406a7adc0 (diff) |
Autofix Rubocop Style/RescueStandardError (#23745)
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/mastodon.rake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake index f919ba989..0a3946ac7 100644 --- a/lib/tasks/mastodon.rake +++ b/lib/tasks/mastodon.rake @@ -92,7 +92,7 @@ namespace :mastodon do prompt.ok 'Database configuration works! 🎆' db_connection_works = true break - rescue StandardError => e + rescue => e prompt.error 'Database connection could not be established with this configuration, try again.' prompt.error e.message break unless prompt.yes?('Try again?') @@ -132,7 +132,7 @@ namespace :mastodon do redis.ping prompt.ok 'Redis configuration works! 🎆' break - rescue StandardError => e + rescue => e prompt.error 'Redis connection could not be established with this configuration, try again.' prompt.error e.message break unless prompt.yes?('Try again?') @@ -417,7 +417,7 @@ namespace :mastodon do mail = ActionMailer::Base.new.mail to: send_to, subject: 'Test', body: 'Mastodon SMTP configuration works!' mail.deliver break - rescue StandardError => e + rescue => e prompt.error 'E-mail could not be sent with this configuration, try again.' prompt.error e.message break unless prompt.yes?('Try again?') |