From b0f7fffbe09a73a93d908933c129459c4909820c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=82=85Fox?= Date: Tue, 19 Jun 2018 11:29:57 +0800 Subject: [PATCH] fix sentry example infinite loop --- content/docs/sentry.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/sentry.md b/content/docs/sentry.md index fe899b3..a10d3b8 100644 --- a/content/docs/sentry.md +++ b/content/docs/sentry.md @@ -47,7 +47,7 @@ pub fn report_actix_error_to_sentry(err: &Error) { let mut ptr: Option<&Fail> = err.cause().cause(); while let Some(cause) = ptr { exceptions.push(exception_from_single_fail(cause, cause.backtrace())); - ptr = Some(cause); + ptr = cause.cause(); } exceptions.reverse(); client.capture_event(