You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2018/07/06 21:07:03 UTC

[whimsy] branch master updated: Catch mail errors

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 <se...@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