зеркало из https://github.com/github/ruby.git
No exception report when the exception is not specified to catch.
[ruby-talk:50330] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
c7e16e94e4
Коммит
5ce589c25d
|
@ -666,13 +666,13 @@ EOHELP
|
|||
end
|
||||
|
||||
def excn_handle(file, line, id, binding)
|
||||
stdout.printf "%s:%d: `%s' (%s)\n", file, line, $!, $!.type
|
||||
if $!.type <= SystemExit
|
||||
set_trace_func nil
|
||||
exit
|
||||
end
|
||||
|
||||
if @catch and ($!.type.ancestors.find { |e| e.to_s == @catch })
|
||||
stdout.printf "%s:%d: `%s' (%s)\n", file, line, $!, $!.type
|
||||
fs = @frames.size
|
||||
tb = caller(0)[-fs..-1]
|
||||
if tb
|
||||
|
|
Загрузка…
Ссылка в новой задаче