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: Show some message details on failure
Date Thu, 03 May 2018 16:49:00 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 4fdf4a3  Show some message details on failure
4fdf4a3 is described below

commit 4fdf4a3f0902e48305f2eb3483a63867982b4257
Author: Sebb <sebb@apache.org>
AuthorDate: Thu May 3 17:48:59 2018 +0100

    Show some message details on failure
 www/secretary/workbench/deliver.rb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/www/secretary/workbench/deliver.rb b/www/secretary/workbench/deliver.rb
index cb4396c..e329da9 100644
--- a/www/secretary/workbench/deliver.rb
+++ b/www/secretary/workbench/deliver.rb
@@ -34,4 +34,8 @@ message.write_headers
 # Now fail if there was an error
-raise fail if fail
\ No newline at end of file
+if fail
+  require 'time'
+  $stderr.puts "WARNING: #{Time.now.utc.iso8601}: error processing email with hash: #{hash}"
+  raise fail

To stop receiving notification emails like this one, please contact

View raw message