1
0
mirror of https://github.com/actix/actix-website synced 2024-11-30 19:14:36 +01:00

fix sentry example infinite loop

This commit is contained in:
小傅Fox 2018-06-19 11:29:57 +08:00 committed by GitHub
parent 7a5b633dd1
commit b0f7fffbe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(