Skip to content

Instantly share code, notes, and snippets.

@myronmarston
Created October 29, 2011 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myronmarston/1324150 to your computer and use it in GitHub Desktop.
Save myronmarston/1324150 to your computer and use it in GitHub Desktop.
Demonstration of a weird bug in MRI 1.8
def expected_error
defined?(::Some::OtherError) ? ::Some::OtherError : ArgumentError
end
begin
begin
raise "boom"
rescue expected_error
end
rescue Exception => e
puts e
end
puts "after error"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment