Skip to content

Commit 0d24405

Browse files
committed
Update logErrorAndWait removing try which is no longer necessary
1 parent 69cc104 commit 0d24405

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

WooCommerce/Classes/Tools/Logging/WooCrashLoggingStack.swift

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,8 @@ struct WooCrashLoggingStack: CrashLoggingStack {
5050
}
5151

5252
func logFatalErrorAndExit(_ error: Error, userInfo: [String: Any]? = nil) -> Never {
53-
do {
54-
crashLoggingDataProvider.appIsCrashing = true
55-
try crashLogging.logErrorAndWait(error, userInfo: userInfo, level: .fatal)
56-
} catch {
57-
DDLogError("⛔️ Unable to send startup error message to Sentry: \(error)")
58-
}
53+
crashLoggingDataProvider.appIsCrashing = true
54+
crashLogging.logErrorAndWait(error, userInfo: userInfo, level: .fatal)
5955
fatalError(error.localizedDescription)
6056
}
6157

0 commit comments

Comments
 (0)