mirror of
https://github.com/actix/actix-website
synced 2025-07-01 09:05:10 +02:00
fix sentry example infinite loop
This commit is contained in:
@ -47,7 +47,7 @@ pub fn report_actix_error_to_sentry(err: &Error) {
|
|||||||
let mut ptr: Option<&Fail> = err.cause().cause();
|
let mut ptr: Option<&Fail> = err.cause().cause();
|
||||||
while let Some(cause) = ptr {
|
while let Some(cause) = ptr {
|
||||||
exceptions.push(exception_from_single_fail(cause, cause.backtrace()));
|
exceptions.push(exception_from_single_fail(cause, cause.backtrace()));
|
||||||
ptr = Some(cause);
|
ptr = cause.cause();
|
||||||
}
|
}
|
||||||
exceptions.reverse();
|
exceptions.reverse();
|
||||||
client.capture_event(
|
client.capture_event(
|
||||||
|
Reference in New Issue
Block a user