зеркало из https://github.com/github/ruby.git
* lib/irb/init.rb (IRB.load_modules): catch LoadError explicitly.
a patch from Daniel Berger <Daniel.Berger at qwest.com> in [ruby-core:19451]. fix [ruby-core:19450] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
409293eb09
Коммит
04e30e3103
|
@ -1,3 +1,9 @@
|
|||
Thu Oct 23 16:19:33 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/irb/init.rb (IRB.load_modules): catch LoadError explicitly.
|
||||
a patch from Daniel Berger <Daniel.Berger at qwest.com> in
|
||||
[ruby-core:19451]. fix [ruby-core:19450]
|
||||
|
||||
Thu Oct 23 16:16:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/socket/socket.c (sock_s_getservbyport): check if the port range.
|
||||
|
|
|
@ -247,8 +247,8 @@ module IRB
|
|||
for m in @CONF[:LOAD_MODULES]
|
||||
begin
|
||||
require m
|
||||
rescue # StandardError, ScriptError
|
||||
print $@[0], ":", $!.class, ": ", $!, "\n"
|
||||
rescue LoadError => err
|
||||
warn err.backtrace[0] << ":#{err.class}: #{err}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче