Raise in rescue blocks without args
When rescuing exceptions with the intent to reraise them after doing some logic, you don't need to pass the original exception to the raise
method:
begin
# ...
rescue
puts "Something went wrong"
raise # will raise the original exception
end
Tweet