From 9f91db96427f2816acc64edcc27631d733b410a3 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 e001e300..8cb16d53 100644 --- a/AltStore/Managing Apps/AppManager.swift +++ b/AltStore/Managing Apps/AppManager.swift @@ -1803,6 +1803,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()