mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-19 11:43:24 +01:00
Skips logging OperationError.cancelled errors
This commit is contained in:
@@ -2003,6 +2003,12 @@ private extension AppManager
|
|||||||
|
|
||||||
func log(_ error: Error, operation: LoggedError.Operation, app: AppProtocol)
|
func log(_ error: Error, operation: LoggedError.Operation, app: AppProtocol)
|
||||||
{
|
{
|
||||||
|
switch error
|
||||||
|
{
|
||||||
|
case ~OperationError.Code.cancelled: return // Don't log OperationError.cancelled
|
||||||
|
default: break
|
||||||
|
}
|
||||||
|
|
||||||
// Sanitize NSError on same thread before performing background task.
|
// Sanitize NSError on same thread before performing background task.
|
||||||
let sanitizedError = (error as NSError).sanitizedForSerialization()
|
let sanitizedError = (error as NSError).sanitizedForSerialization()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user