summaryrefslogtreecommitdiff
path: root/lib/rake.rb
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
commite9fff84b956802585b8aa706ff11fc2644f70b70 (patch)
tree73030b270abdd0b9ce806552bc7662f43f9a2e34 /lib/rake.rb
parent901ba06ba6e422db74787f4b80f75cbdd76dc0db (diff)
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@19755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rake.rb')
-rwxr-xr-xlib/rake.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rake.rb b/lib/rake.rb
index f78cd3c..480068b 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