[前][次][番号順一覧][スレッド一覧]

ruby-changes:8227

From: nobu <ko1@a...>
Date: Sat, 11 Oct 2008 08:51:39 +0900 (JST)
Subject: [ruby-changes:8227] Ruby:r19755 (trunk): * lib/rake.rb (Rake::Application#standard_exception_handling): removed

nobu	2008-10-11 08:51:16 +0900 (Sat, 11 Oct 2008)

  New Revision: 19755

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19755

  Log:
    * lib/rake.rb (Rake::Application#standard_exception_handling): removed
      unnecessary SystemExit, and exits with false instead of system
      dependent value.  [ruby-talk:317330]

  Modified files:
    trunk/ChangeLog
    trunk/lib/rake.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19754)
+++ ChangeLog	(revision 19755)
@@ -1,3 +1,9 @@
+Sat Oct 11 08:51:13 2008  Nobuyoshi Nakada  <nobu@r...>
+
+	* lib/rake.rb (Rake::Application#standard_exception_handling): removed
+	  unnecessary SystemExit, and exits with false instead of system
+	  dependent value.  [ruby-talk:317330]
+
 Sat Oct 11 03:54:05 2008  Koichi Sasada  <ko1@a...>
 
 	* parse.y: optimize 'for' statement when one variable given.
Index: lib/rake.rb
===================================================================
--- lib/rake.rb	(revision 19754)
+++ lib/rake.rb	(revision 19755)
@@ -2032,10 +2032,10 @@
         yield
       rescue SystemExit => ex
         # Exit silently with current status
-        exit(ex.status)
-      rescue SystemExit, OptionParser::InvalidOption => ex
+        raise
+      rescue OptionParser::InvalidOption => ex
         # Exit silently
-        exit(1)
+        exit(false)
       rescue Exception => ex
         # Exit with error message
         $stderr.puts "rake aborted!"
@@ -2046,7 +2046,7 @@
           $stderr.puts ex.backtrace.find {|str| str =~ /#{@rakefile}/ } || ""
           $stderr.puts "(See full trace by running task with --trace)"
         end
-        exit(1)
+        exit(false)
       end
     end
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]