Switch to fatalErroring on SDK background task panics in release builds too
This commit is contained in:
@@ -231,10 +231,7 @@ class ClientProxy: ClientProxyProtocol {
|
||||
switch error {
|
||||
case .panic(let message, let backtrace):
|
||||
MXLog.error("Received background task panic: \(message ?? "Missing message")\nBacktrace:\n\(backtrace ?? "Missing backtrace")")
|
||||
|
||||
if AppSettings.appBuildType == .debug || AppSettings.appBuildType == .nightly {
|
||||
fatalError(message ?? "")
|
||||
}
|
||||
fatalError(message ?? "")
|
||||
case .error(let error):
|
||||
MXLog.error("Received background task error: \(error)")
|
||||
case .earlyTermination:
|
||||
|
||||
Reference in New Issue
Block a user