summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-10 23:51:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-10 23:51:16 +0000
commitfe2d8d2d558bf2c0f790a01d2b19659be947fe58 (patch)
tree73030b270abdd0b9ce806552bc7662f43f9a2e34
parentcc817843650de3a90843201d9e96ada2861a1726 (diff)
downloadruby-fe2d8d2d558bf2c0f790a01d2b19659be947fe58.tar.gz
ruby-fe2d8d2d558bf2c0f790a01d2b19659be947fe58.tar.xz
ruby-fe2d8d2d558bf2c0f790a01d2b19659be947fe58.zip
* lib/rake.rb (Rake::Application#standard_exception_handling): removed
unnecessary SystemExit, and exits with false instead of system dependent value. [ruby-talk:317330] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rwxr-xr-xlib/rake.rb8
2 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 4ef53b86b..7943b4734 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sat Oct 11 08:51:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * 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@atdot.net>
* parse.y: optimize 'for' statement when one variable given.
diff --git a/lib/rake.rb b/lib/rake.rb
index f78cd3cd3..480068be7 100755
--- a/lib/rake.rb
+++ b/lib/rake.rb
@@ -2032,10 +2032,10 @@ module Rake
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 @@ module Rake
$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