whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Catch mail errors
Date Fri, 06 Jul 2018 21:07:03 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new bcdb0f5  Catch mail errors
bcdb0f5 is described below

commit bcdb0f5b51b04b9652c5683d2d680b5f625e7931
Author: Sebb <sebb@apache.org>
AuthorDate: Fri Jul 6 22:07:02 2018 +0100

    Catch mail errors
---
 www/project/icla/views/actions/discuss.json.rb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/www/project/icla/views/actions/discuss.json.rb b/www/project/icla/views/actions/discuss.json.rb
index ad72b0d..5537ae9 100644
--- a/www/project/icla/views/actions/discuss.json.rb
+++ b/www/project/icla/views/actions/discuss.json.rb
@@ -110,7 +110,11 @@ mail = Mail.new do
     body body_text
   end
 end
-mail.deliver
+begin
+  mail.deliver
+rescue => e
+  _error "Failed to send the mail: #{e}"
+end
 
 # add token and invitation to the response
 _token token


Mime
View raw message