diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-17 04:38:19 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-17 04:38:19 +0000 |
commit | 133ff3421a9867ec49a23df97aba3db63fc78755 (patch) | |
tree | 881e313831cafec35bfc80a3b2f15f1b98426853 /sample | |
parent | 1fc61ca55fd736dbe63c37abde8239601ce3b2aa (diff) |
2000-05-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r-- | sample/rbc.rb | 8 |
1 files changed, 4 insertions, 4 deletions
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 |