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 | c89af9fc53fe324a9c8247a423e6c35f471e1c9d (patch) | |
| tree | 881e313831cafec35bfc80a3b2f15f1b98426853 /sample | |
| parent | bc9f3cf198ad1d1415e58f2ce8109d84c7cb3c30 (diff) | |
| download | ruby-c89af9fc53fe324a9c8247a423e6c35f471e1c9d.tar.gz ruby-c89af9fc53fe324a9c8247a423e6c35f471e1c9d.tar.xz ruby-c89af9fc53fe324a9c8247a423e6c35f471e1c9d.zip | |
2000-05-17
git-svn-id: http://svn.ruby-lang.org/repos/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 2c18d823a..c1b2999bd 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 |
