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:
parent
7a5b633dd1
commit
b0f7fffbe0
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user