зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
901ba06ba6
Коммит
e9fff84b95
|
@ -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>
|
Sat Oct 11 03:54:05 2008 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* parse.y: optimize 'for' statement when one variable given.
|
* parse.y: optimize 'for' statement when one variable given.
|
||||||
|
|
|
@ -2032,10 +2032,10 @@ module Rake
|
||||||
yield
|
yield
|
||||||
rescue SystemExit => ex
|
rescue SystemExit => ex
|
||||||
# Exit silently with current status
|
# Exit silently with current status
|
||||||
exit(ex.status)
|
raise
|
||||||
rescue SystemExit, OptionParser::InvalidOption => ex
|
rescue OptionParser::InvalidOption => ex
|
||||||
# Exit silently
|
# Exit silently
|
||||||
exit(1)
|
exit(false)
|
||||||
rescue Exception => ex
|
rescue Exception => ex
|
||||||
# Exit with error message
|
# Exit with error message
|
||||||
$stderr.puts "rake aborted!"
|
$stderr.puts "rake aborted!"
|
||||||
|
@ -2046,7 +2046,7 @@ module Rake
|
||||||
$stderr.puts ex.backtrace.find {|str| str =~ /#{@rakefile}/ } || ""
|
$stderr.puts ex.backtrace.find {|str| str =~ /#{@rakefile}/ } || ""
|
||||||
$stderr.puts "(See full trace by running task with --trace)"
|
$stderr.puts "(See full trace by running task with --trace)"
|
||||||
end
|
end
|
||||||
exit(1)
|
exit(false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче