From 642f3333c638609aff855b1daf19e889557fe1de Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 26 May 2026 19:18:11 +0000 Subject: [PATCH] Fix non-exhaustive CloudKitError switch in CelestraCloud Handle the incompleteResponse, subscriptionOperationFailed, and subscriptionLikelyDuplicate cases added to CloudKitError so the CelestraCloud example builds. All three are classified as non-retriable. https://claude.ai/code/session_01WY9rXuEkERRMMnLDz2872H --- .../Sources/CelestraCloudKit/Services/CelestraError.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Examples/CelestraCloud/Sources/CelestraCloudKit/Services/CelestraError.swift b/Examples/CelestraCloud/Sources/CelestraCloudKit/Services/CelestraError.swift index cdc6e089..cee7f485 100644 --- a/Examples/CelestraCloud/Sources/CelestraCloudKit/Services/CelestraError.swift +++ b/Examples/CelestraCloud/Sources/CelestraCloudKit/Services/CelestraError.swift @@ -147,8 +147,12 @@ public enum CelestraError: LocalizedError { case .unsupportedOperationType, .paginationLimitExceeded, .zonePaginationLimitExceeded: // Programmer/configuration issues — not retriable return false - case .conversionFailed, .recordOperationFailed: - // Response could not be mapped, or a per-record operation failed — not retriable + case .conversionFailed, .recordOperationFailed, .incompleteResponse: + // Response could not be mapped or was incomplete, or a per-record + // operation failed — not retriable + return false + case .subscriptionOperationFailed, .subscriptionLikelyDuplicate: + // Subscription operation failed or was a duplicate — not retriable return false case .missingCredentials, .invalidPrivateKey: // Credential/configuration issues — not retriable