From b4de3bee839e96e33bd203860320f28e582e3f3b Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Fri, 15 Nov 2024 23:14:47 +0100 Subject: [PATCH] tart pull: retry if we get URLError (#947) --- Sources/tart/VMStorageOCI.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/tart/VMStorageOCI.swift b/Sources/tart/VMStorageOCI.swift index 86896d4..d3edee6 100644 --- a/Sources/tart/VMStorageOCI.swift +++ b/Sources/tart/VMStorageOCI.swift @@ -212,7 +212,7 @@ class VMStorageOCI: PrunableStorage { try await tmpVMDir.pullFromRegistry(registry: registry, manifest: manifest, concurrency: concurrency, localLayerCache: localLayerCache, deduplicate: deduplicate) } recoverFromFailure: { error in - if error is Retryable { + if error is URLError { print("Error: \(error.localizedDescription)") print("Attempting to re-try...")