Skip to content

Commit 37b4e98

Browse files
committed
Don’t show intermittent cancellation errors in search
1 parent 992afaf commit 37b4e98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/Sources/Yosemite/PointOfSale/Items/PointOfSaleItemService.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public final class PointOfSaleItemService: PointOfSaleItemServiceProtocol {
3636
return .init(items: itemMapper.mapProductsToPOSItems(products: products),
3737
hasMorePages: pagedProducts.hasMorePages,
3838
totalItems: pagedProducts.totalItems)
39-
} catch AFError.explicitlyCancelled {
39+
} catch AFError.explicitlyCancelled, is CancellationError {
4040
throw PointOfSaleItemServiceError.requestCancelled
4141
}
4242
}
@@ -55,7 +55,7 @@ public final class PointOfSaleItemService: PointOfSaleItemServiceProtocol {
5555
hasMorePages: pagedVariations.hasMorePages,
5656
totalItems: pagedVariations.totalItems
5757
)
58-
} catch AFError.explicitlyCancelled {
58+
} catch AFError.explicitlyCancelled, is CancellationError {
5959
throw PointOfSaleItemServiceError.requestCancelled
6060
}
6161
}

0 commit comments

Comments
 (0)