aboutsummaryrefslogtreecommitdiffstats
path: root/sample/eval.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-02-08 08:54:01 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-02-08 08:54:01 +0000
commit320e99d8dda5eb5fc327fcbe20126cdd7fcd059d (patch)
treeb1fc6d8062eebd46c7b8f4fd67f606c9af8f93c2 /sample/eval.rb
parent25be6ce9b5dd2aabad61410068d688250c562189 (diff)
downloadruby-320e99d8dda5eb5fc327fcbe20126cdd7fcd059d.tar.gz
2000-02-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/eval.rb')
-rw-r--r--sample/eval.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/eval.rb b/sample/eval.rb
index 216bf8ca39..b9a54df34c 100644
--- a/sample/eval.rb
+++ b/sample/eval.rb
@@ -31,7 +31,7 @@ while TRUE
end
begin
print eval(line).inspect, "\n"
- rescue
+ rescue ScriptError, StandardError
$! = 'exception raised' unless $!
print "ERR: ", $!, "\n"
end