1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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:
matz 2008-10-23 07:21:05 +00:00
parent 409293eb09
commit 04e30e3103
2 changed files with 8 additions and 2 deletions

View file

@ -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.

View file

@ -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