lib/raven/utils/exception_cause_chain.rb in sentry-raven-3.0.0 vs lib/raven/utils/exception_cause_chain.rb in sentry-raven-3.0.1
- old
+ new
@@ -5,9 +5,10 @@
if exception.respond_to?(:cause) && exception.cause
exceptions = [exception]
while exception.cause
exception = exception.cause
break if exceptions.any? { |e| e.object_id == exception.object_id }
+
exceptions << exception
end
exceptions
else
[exception]