Skip to content

Commit ddfb0a9

Browse files
committed
Do not fail when reason exception does not have a backtrace
1 parent b1e767b commit ddfb0a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/concurrent/promises.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ def exception(*args)
960960
if reason.size > 1
961961
Concurrent::MultipleErrors.new reason
962962
else
963-
ex = reason[0].exception(*args)
963+
ex = reason[0].clone.exception(*args)
964964
ex.set_backtrace Array(ex.backtrace) + caller
965965
ex
966966
end

0 commit comments

Comments
 (0)