summaryrefslogtreecommitdiffstats
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
commit94e1f8eae7883614cdddd000a09d129e1b353e35 (patch)
treeb1fc6d8062eebd46c7b8f4fd67f606c9af8f93c2 /sample/eval.rb
parenta96483e2ced5119e0a60eb4ac89a5357959a05ca (diff)
downloadruby-94e1f8eae7883614cdddd000a09d129e1b353e35.tar.gz
ruby-94e1f8eae7883614cdddd000a09d129e1b353e35.tar.xz
ruby-94e1f8eae7883614cdddd000a09d129e1b353e35.zip
2000-02-08
git-svn-id: http://svn.ruby-lang.org/repos/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 216bf8ca3..b9a54df34 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