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 <[email protected]>
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
message.write_email
# 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
+end
--
To stop receiving notification emails like this one, please contact
[email protected].