Skip to content

Commit

Permalink
fixup! Add the WrappedError class
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrylo committed Jun 6, 2024
1 parent 52b6a02 commit 7d1aefa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/test_wrapped_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ def test_unwraps_errors_without_a_cause

def test_unwraps_no_more_than_3_nested_errors
begin
raise RuntimeError, "error 1"
rescue => e1
raise "error 1"
rescue => _
begin
raise RuntimeError, "error 2"
rescue => e2
raise "error 2"
rescue => _
begin
raise RuntimeError, "error 3"
raise "error 3"
rescue => e3
begin
raise RuntimeError, "error 4"
raise "error 4"
rescue => e4
begin
raise RuntimeError, "error 5"
raise "error 5"
rescue => e5
end
end
Expand Down

0 comments on commit 7d1aefa

Please sign in to comment.