mirror of
https://github.com/actix/actix-website
synced 2025-07-01 01:04:27 +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();
|
||||
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(
|
||||
|
Reference in New Issue
Block a user