whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/1] Commit 4f63a2f: Success may be indicated with a nil value for $!
Date Mon, 18 Jan 2016 02:47:17 GMT
Commit 4f63a2fff6a293f19bf5fe45362df58a5b5b9f1a:
    Success may be indicated with a nil value for $!


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
tools/collate_minutes.rb                                     | +++++ -
------------------------------------------------------------
6 changes: 5 additions, 1 deletions.
------------------------------------------------------------


diff --git a/tools/collate_minutes.rb b/tools/collate_minutes.rb
index 1b69a39..313479f 100755
--- a/tools/collate_minutes.rb
+++ b/tools/collate_minutes.rb
@@ -8,7 +8,11 @@
 require 'fileutils'
 
 # for monitoring purposes
-at_exit { puts "\n*** Exception #{$!.class} ***" unless SystemExit === $! }
+at_exit do
+  if $1 and not $1.instance_of? SystemExit
+    puts "\n*** Exception #{$!.class} ***"
+  end
+end
 
 # destination directory
 SITE_MINUTES = ASF::Config.get(:board_minutes) ||

Mime
View raw message