You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2015/11/27 10:10:36 UTC

[2/5] buildr git commit: Gracefully handle all sorts of exceptions

Gracefully handle all sorts of exceptions


Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/a0d695fc
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/a0d695fc
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/a0d695fc

Branch: refs/heads/master
Commit: a0d695fcde6bb5583d82952de6a7a7ec2afbaaac
Parents: 79576b9
Author: Peter Donald <pe...@realityforge.org>
Authored: Fri Nov 27 18:06:03 2015 +1100
Committer: Peter Donald <pe...@realityforge.org>
Committed: Fri Nov 27 18:06:03 2015 +1100

----------------------------------------------------------------------
 addon/buildr/checkstyle.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/a0d695fc/addon/buildr/checkstyle.rb
----------------------------------------------------------------------
diff --git a/addon/buildr/checkstyle.rb b/addon/buildr/checkstyle.rb
index 48f6d79..97843b5 100644
--- a/addon/buildr/checkstyle.rb
+++ b/addon/buildr/checkstyle.rb
@@ -55,7 +55,7 @@ module Buildr
         begin
           touch output_file
           Java::Commands.java 'com.puppycrawl.tools.checkstyle.Main', *(args + [{:classpath => cp, :properties => options[:properties], :java_args => options[:java_args]}])
-        rescue => e
+        rescue Exception => e
           rm_f output_file
           raise e if options[:fail_on_error]
         end