[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
This commit is contained in:
parent
88cca110e3
commit
1df8221ca0
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue