From 1df8221ca072ea2f2f2961082a35cb702694ca89 Mon Sep 17 00:00:00 2001 From: Masaki Fukushima Date: Fri, 22 Sep 2000 14:40:15 +0000 Subject: [PATCH] [Ruby] explicitly rescue NameError (for ruby-1.6) git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@880 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/ruby/variables/runme.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/ruby/variables/runme.rb b/Examples/ruby/variables/runme.rb index f4ce9cc39..ab73a35e4 100644 --- a/Examples/ruby/variables/runme.rb +++ b/Examples/ruby/variables/runme.rb @@ -53,7 +53,7 @@ puts " Tring to set 'path'"; begin Example.path = "Whoa!" puts "Hey, what's going on?!?! This shouldn't work" -rescue +rescue NameError puts "Good." end @@ -61,7 +61,7 @@ puts " Trying to set 'status'"; begin Example.status = 0 puts "Hey, what's going on?!?! This shouldn't work" -rescue +rescue NameError puts "Good." end