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: Report errors
Date Wed, 01 May 2019 21:02:40 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 a70cc75  Report errors
a70cc75 is described below

commit a70cc7552dbc74f7e47d4d0c91846d13e4216503
Author: Sebb <sebb@apache.org>
AuthorDate: Wed May 1 22:02:37 2019 +0100

    Report errors
---
 tools/monthly_tidy.rb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tools/monthly_tidy.rb b/tools/monthly_tidy.rb
index 7bb2c8c..dff3e6c 100644
--- a/tools/monthly_tidy.rb
+++ b/tools/monthly_tidy.rb
@@ -17,7 +17,10 @@ MAIL = '/srv/mail'
 
 Dir["#{MAIL}/board/20*", "#{MAIL}/members/20*"].each do |dir|
   if File.basename(dir) < keep
-    puts "Deleting #{dir}"
-    FileUtils.rm_rf dir
+    begin
+      FileUtils.rm_rf dir, :verbose => true
+    rescue => e
+      puts e
+    end
   end
 end


Mime
View raw message