From 133ff3421a9867ec49a23df97aba3db63fc78755 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 17 May 2000 04:38:19 +0000 Subject: 2000-05-17 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sample/rbc.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sample/rbc.rb') diff --git a/sample/rbc.rb b/sample/rbc.rb index 2c18d823a1..c1b2999bdf 100644 --- a/sample/rbc.rb +++ b/sample/rbc.rb @@ -127,7 +127,7 @@ module BC_APPLICATION__ else print((cont._=eval(line, bind)), "\n") end - rescue + rescue StandardError, ScriptError # $! = 'exception raised' unless $! # print "ERR: ", $!, "\n" $! = RuntimeError.new("exception raised") unless $! @@ -929,7 +929,7 @@ module BC_APPLICATION__ if File.exists?(rc) begin load rc - rescue + rescue LoadError print "load error: #{rc}\n" print $!.type, ": ", $!, "\n" for err in $@[0, $@.size - 2] @@ -946,7 +946,7 @@ module BC_APPLICATION__ for m in CONFIG[:LOAD_MODULES] begin require m - rescue + rescue LoadError print $@[0], ":", $!.type, ": ", $!, "\n" end end @@ -1004,7 +1004,7 @@ module BC_APPLICATION__ end end end - rescue + rescue LoadError CONFIG[:USE_READLINE] = FALSE end end -- cgit v1.2.3