From 7e01972cd43f8e35d1750485007754cc5e3789be Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Mon, 14 Nov 2022 15:35:57 -0600 Subject: [PATCH] Skips logging OperationError.cancelled errors --- AltStore/Managing Apps/AppManager.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AltStore/Managing Apps/AppManager.swift b/AltStore/Managing Apps/AppManager.swift index 0d386d8c..3dd1ef9f 100644 --- a/AltStore/Managing Apps/AppManager.swift +++ b/AltStore/Managing Apps/AppManager.swift @@ -2003,6 +2003,12 @@ private extension AppManager 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. let sanitizedError = (error as NSError).sanitizedForSerialization()