Skip to content

Commit

Permalink
format errors
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed Jan 12, 2024
1 parent 3afa858 commit 21b1320
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/tasks/getxo.rake
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,11 @@ namespace :getxo do
from: Decidim.mailer_sender,
subject: "A test mail from #{Decidim.application_name}",
body: "Sent by #{ENV.fetch("LOGNAME", nil)} in #{ENV.fetch("HOME", nil)} at #{Date.current}")
puts "Sending mail..."
mail.deliver_now
rescue ArgumentError
puts "Mail sent!"
rescue ArgumentError => e
puts "\n\e[31mERROR: #{e.message}\e[0m\n\n"
puts mail_usage
end

Expand Down

0 comments on commit 21b1320

Please sign in to comment.