diff options
Diffstat (limited to 'lib/irb/init.rb')
-rw-r--r-- | lib/irb/init.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/init.rb b/lib/irb/init.rb index f238153164..d883b78911 100644 --- a/lib/irb/init.rb +++ b/lib/irb/init.rb @@ -191,7 +191,7 @@ module IRB rescue LoadError, Errno::ENOENT rescue print "load error: #{rc}\n" - print $!.type, ": ", $!, "\n" + print $!.class, ": ", $!, "\n" for err in $@[0, [email protected] - 2] print "\t", err, "\n" end @@ -208,7 +208,7 @@ module IRB begin require m rescue - print $@[0], ":", $!.type, ": ", $!, "\n" + print $@[0], ":", $!.class, ": ", $!, "\n" end end end |