Skip to content

Commit e013821

Browse files
committed
Combine backtrace from async execution with the location of its rising
1 parent b8be1a5 commit e013821

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/concurrent/edge/promises.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,9 @@ def exception(*args)
962962
if reason.size > 1
963963
Concurrent::MultipleErrors.new reason
964964
else
965-
reason[0].exception(*args)
965+
ex = reason[0].exception(*args)
966+
ex.set_backtrace ex.backtrace + caller
967+
ex
966968
end
967969
end
968970

0 commit comments

Comments
 (0)