We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
logErrorAndWait
try
1 parent 69cc104 commit 0d24405Copy full SHA for 0d24405
WooCommerce/Classes/Tools/Logging/WooCrashLoggingStack.swift
@@ -50,12 +50,8 @@ struct WooCrashLoggingStack: CrashLoggingStack {
50
}
51
52
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
- }
+ crashLoggingDataProvider.appIsCrashing = true
+ crashLogging.logErrorAndWait(error, userInfo: userInfo, level: .fatal)
59
fatalError(error.localizedDescription)
60
61
0 commit comments