From 531d1a80b1b7beacb352cf37d5184f99904b31c5 Mon Sep 17 00:00:00 2001 From: Norbel Ambanumben Date: Fri, 28 Jul 2023 08:04:58 +0100 Subject: [PATCH] modified log for Sentry SDK --- ooniprobe/Utility/ThirdPartyServices.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ooniprobe/Utility/ThirdPartyServices.m b/ooniprobe/Utility/ThirdPartyServices.m index 2567c0dd..a3eba032 100644 --- a/ooniprobe/Utility/ThirdPartyServices.m +++ b/ooniprobe/Utility/ThirdPartyServices.m @@ -81,11 +81,11 @@ + (void)recordError:(NSString*)title reason:(NSString*)reason userInfo:(NSDictio NSError *error = [NSError errorWithDomain:title code:-1001 userInfo:userInfo]; + // TODO (aanorbel) Call to `SentrySDK` fails causing the app to crash. + // Still to properly investigate and fix. @try { [SentrySDK captureError:error]; - }@catch(NSException *e) { - - }@finally { + } @catch(NSException *e) { NSLog(@"Failed reporting error"); }