-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rescue through Set of errors not working #2572
Comments
brauliobo
changed the title
Rescue through array of constants not working
Rescue through array of errors not working
Jan 17, 2022
Thanks for the report, simpler repro with no dependencies: require 'set'
RETRIABLE_ERRORS = Set.new([
RuntimeError,
ArgumentError,
])
def call
raise "oops"
rescue *RETRIABLE_ERRORS => e
p e
end
call It works fine if an Array is used instead of the |
eregon
changed the title
Rescue through array of errors not working
Rescue through Set of errors not working
Jan 18, 2022
thanks eregon, I'll switch to array |
I have a fix coming BTW, it's literally changing a |
graalvmbot
pushed a commit
that referenced
this issue
Jan 18, 2022
eregon
added a commit
to ruby/spec
that referenced
this issue
Jan 28, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code:
Returns the error
TypeError: class or module required for rescue clause
on truffleruby but works on MRIThe text was updated successfully, but these errors were encountered: